Skip to content

Commit

Permalink
fixup! [stable27] fix: failing tests for setup check
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Jun 10, 2024
1 parent ffb8caa commit e0f95ed
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions apps/settings/tests/Controller/CheckSetupControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down

0 comments on commit e0f95ed

Please sign in to comment.