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( [