diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-12 21:35:24 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-13 09:09:53 +0200 |
commit | cd5183dccc3eb16a08a838d45e65a6e7f8e11dcb (patch) | |
tree | 0171600b43552ad48861316d66e539ae571c02dd /tests | |
parent | dcf8091d69de9d2c748859cd921051fecc8cc88a (diff) | |
download | nextcloud-server-cd5183dccc3eb16a08a838d45e65a6e7f8e11dcb.tar.gz nextcloud-server-cd5183dccc3eb16a08a838d45e65a6e7f8e11dcb.zip |
Fix getMock DBLockingProviderTest
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Lock/DBLockingProviderTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Lock/DBLockingProviderTest.php b/tests/lib/Lock/DBLockingProviderTest.php index a7c3f463155..fb27f9957af 100644 --- a/tests/lib/Lock/DBLockingProviderTest.php +++ b/tests/lib/Lock/DBLockingProviderTest.php @@ -21,6 +21,7 @@ namespace Test\Lock; +use OCP\AppFramework\Utility\ITimeFactory; use OCP\Lock\ILockingProvider; /** @@ -50,7 +51,7 @@ class DBLockingProviderTest extends LockingProvider { public function setUp() { $this->currentTime = time(); - $this->timeFactory = $this->getMock('\OCP\AppFramework\Utility\ITimeFactory'); + $this->timeFactory = $this->createMock(ITimeFactory::class); $this->timeFactory->expects($this->any()) ->method('getTime') ->will($this->returnCallback(function () { |