diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-06-14 15:26:15 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-06-22 10:25:17 +0200 |
commit | 3598ec40285b88d4f8f03a4db8d3a085a521d2df (patch) | |
tree | c0a29d567de0539b6e6e97bf9f0e2ce79bbc5ac0 /apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php | |
parent | de82d4f67ca8d12a0209598f9cdd55302d546524 (diff) | |
download | nextcloud-server-3598ec40285b88d4f8f03a4db8d3a085a521d2df.tar.gz nextcloud-server-3598ec40285b88d4f8f03a4db8d3a085a521d2df.zip |
Add typing to Sharing Backend
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php')
-rw-r--r-- | apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php b/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php index cd3269d657c..576fde2d4af 100644 --- a/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php +++ b/apps/dav/tests/unit/Controller/InvitationResponseControllerTest.php @@ -37,6 +37,7 @@ use OCP\AppFramework\Utility\ITimeFactory; use OCP\DB\IResult; use OCP\DB\QueryBuilder\IExpressionBuilder; use OCP\DB\QueryBuilder\IQueryBuilder; +use OCP\DB\QueryBuilder\IQueryFunction; use OCP\IDBConnection; use OCP\IRequest; use Sabre\VObject\ITip\Message; @@ -477,10 +478,11 @@ EOF; ->with(\PDO::FETCH_ASSOC) ->willReturn($return); + $function = $this->createMock(IQueryFunction::class); $expr->expects($this->once()) ->method('eq') ->with('token', 'namedParameterToken') - ->willReturn('EQ STATEMENT'); + ->willReturn($function); $this->dbConnection->expects($this->once()) ->method('getQueryBuilder') @@ -497,7 +499,7 @@ EOF; ->willReturn($queryBuilder); $queryBuilder->expects($this->at(4)) ->method('where') - ->with('EQ STATEMENT') + ->with($function) ->willReturn($queryBuilder); $queryBuilder->expects($this->at(5)) ->method('execute') |