ソースを参照

Fix getMock DBLockingProviderTest

Roeland Jago Douma 7 年 前
コミット
cd5183dccc
1 ファイル変更2 行追加1 行削除
  1. 2 1
      tests/lib/Lock/DBLockingProviderTest.php

+ 2 - 1
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 () {