diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-05 12:01:12 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-05 12:01:12 +0100 |
commit | cb0450b5c4fbe590e7b35284a40d78d96a0251f6 (patch) | |
tree | 6712e143e55ae20e0a4d0740ec350614c637d4f1 /apps/dav/tests | |
parent | e29720f9b2aaf7467acdcfe3c9dde9eceda2e3bf (diff) | |
download | nextcloud-server-cb0450b5c4fbe590e7b35284a40d78d96a0251f6.tar.gz nextcloud-server-cb0450b5c4fbe590e7b35284a40d78d96a0251f6.zip |
Improve typing on new methods
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php b/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php index 295949bdc91..ee43bae5355 100644 --- a/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php +++ b/apps/dav/tests/unit/BackgroundJob/CleanupInvitationTokenJobTest.php @@ -32,12 +32,10 @@ namespace OCA\DAV\Tests\unit\BackgroundJob; use OCA\DAV\BackgroundJob\CleanupInvitationTokenJob; use OCP\AppFramework\Utility\ITimeFactory; use OCP\DB\QueryBuilder\IQueryBuilder; -use OCP\DB\QueryBuilder\IQueryFunction; use OCP\IDBConnection; use Test\TestCase; class CleanupInvitationTokenJobTest extends TestCase { - /** @var IDBConnection | \PHPUnit\Framework\MockObject\MockObject */ private $dbConnection; @@ -78,11 +76,11 @@ class CleanupInvitationTokenJobTest extends TestCase { [1337, \PDO::PARAM_STR, null, 'namedParameter1337'] ]); - $function = $this->createMock(IQueryFunction::class); + $function = 'fakefunction'; $expr->expects($this->once()) ->method('lt') ->with('expiration', 'namedParameter1337') - ->willReturn((string)$function); + ->willReturn($function); $this->dbConnection->expects($this->once()) ->method('getQueryBuilder') |