Fix getMock ManagerTest

This commit is contained in:
Roeland Jago Douma 2016-09-12 21:38:56 +02:00
parent 7bc2d178ca
commit 1d166d645b
No known key found for this signature in database
GPG key ID: 1E152838F164D13B

View file

@ -2413,7 +2413,7 @@ class ManagerTest extends \Test\TestCase {
$tomorrow->setTime(0,0,0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->getMock('OCP\Files\File', [], [], 'File');
$file = $this->createMock(File::class);
$file->method('getId')->willReturn(100);
$share = $this->manager->newShare();