Fix getMock DBLockingProviderTest

pull/1378/head
Roeland Jago Douma 9 years ago
parent dcf8091d69
commit cd5183dccc
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
  1. 3
      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 () {

Loading…
Cancel
Save