From e0f95edd56dddaafcb8035644b1880553f858b7b Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Mon, 10 Jun 2024 16:24:25 +0200 Subject: [PATCH] fixup! [stable27] fix: failing tests for setup check --- .../Controller/CheckSetupControllerTest.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/apps/settings/tests/Controller/CheckSetupControllerTest.php b/apps/settings/tests/Controller/CheckSetupControllerTest.php index dd7cf2de91f9b..7459c4fb7fdf7 100644 --- a/apps/settings/tests/Controller/CheckSetupControllerTest.php +++ b/apps/settings/tests/Controller/CheckSetupControllerTest.php @@ -616,16 +616,12 @@ public function testCheck() { ->willReturn($sqlitePlatform); $queryBuilder = $this->getMockBuilder(IQueryBuilder::class)->getMock(); $functionBuilder = $this->getMockBuilder(IFunctionBuilder::class)->getMock(); - $this->connection->method('getQueryBuilder') - ->willReturn($queryBuilder); - $queryBuilder->method('func') - ->willReturn($functionBuilder); - $functionBuilder->method('count') - ->willReturn($this->getMockBuilder(IQueryFunction::class)->getMock()); - $queryBuilder->method('from') - ->willReturn($queryBuilder); - $queryBuilder->method('executeQuery') - ->willReturn($this->getMockBuilder(IResult::class)->getMock()); + $this->connection->method('getQueryBuilder')->willReturn($queryBuilder); + $queryBuilder->method('func')->willReturn($functionBuilder); + $queryBuilder->method('select')->willReturn($queryBuilder); + $queryBuilder->method('from')->willReturn($queryBuilder); + $queryBuilder->method('executeQuery')->willReturn($this->getMockBuilder(IResult::class)->getMock()); + $functionBuilder->method('count')->willReturn($this->getMockBuilder(IQueryFunction::class)->getMock()); $expected = new DataResponse( [