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 7bbf505 commit ffb8caa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/settings/tests/Controller/CheckSetupControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
use OCP\AppFramework\Http\DataDisplayResponse;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\RedirectResponse;
use OCP\DB\IResult;
use OCP\DB\QueryBuilder\IFunctionBuilder;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\DB\QueryBuilder\IQueryFunction;
Expand Down Expand Up @@ -621,6 +622,10 @@ public function testCheck() {
->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());

$expected = new DataResponse(
[
Expand Down

0 comments on commit ffb8caa

Please sign in to comment.