Fix getMock DBLockingProviderTest
This commit is contained in:
parent
dcf8091d69
commit
cd5183dccc
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
namespace Test\Lock;
|
namespace Test\Lock;
|
||||||
|
|
||||||
|
use OCP\AppFramework\Utility\ITimeFactory;
|
||||||
use OCP\Lock\ILockingProvider;
|
use OCP\Lock\ILockingProvider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -50,7 +51,7 @@ class DBLockingProviderTest extends LockingProvider {
|
||||||
|
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
$this->currentTime = time();
|
$this->currentTime = time();
|
||||||
$this->timeFactory = $this->getMock('\OCP\AppFramework\Utility\ITimeFactory');
|
$this->timeFactory = $this->createMock(ITimeFactory::class);
|
||||||
$this->timeFactory->expects($this->any())
|
$this->timeFactory->expects($this->any())
|
||||||
->method('getTime')
|
->method('getTime')
|
||||||
->will($this->returnCallback(function () {
|
->will($this->returnCallback(function () {
|
||||||
|
|
Loading…
Reference in New Issue