Fix deprecated private method

This commit is contained in:
Joas Schilling 2016-05-19 09:44:53 +02:00
parent e88a9b2fed
commit f24179a327
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
1 changed files with 2 additions and 2 deletions

View File

@ -1508,7 +1508,7 @@ class View extends \Test\TestCase {
$defaultView = new \OC\Files\View('/foo/files'); $defaultView = new \OC\Files\View('/foo/files');
$defaultRootValue->setValue($defaultView); $defaultRootValue->setValue($defaultView);
$view = new \OC\Files\View($root); $view = new \OC\Files\View($root);
$result = \Test_Helper::invokePrivate($view, 'shouldEmitHooks', [$path]); $result = $this->invokePrivate($view, 'shouldEmitHooks', [$path]);
$defaultRootValue->setValue($oldRoot); $defaultRootValue->setValue($oldRoot);
$this->assertEquals($shouldEmit, $result); $this->assertEquals($shouldEmit, $result);
} }
@ -1872,7 +1872,7 @@ class View extends \Test\TestCase {
$this->assertEquals(ILockingProvider::LOCK_SHARED, $lockTypePre, 'File locked properly during pre-hook'); $this->assertEquals(ILockingProvider::LOCK_SHARED, $lockTypePre, 'File locked properly during pre-hook');
$this->assertEquals(ILockingProvider::LOCK_EXCLUSIVE, $lockTypeDuring, 'File locked properly during operation'); $this->assertEquals(ILockingProvider::LOCK_EXCLUSIVE, $lockTypeDuring, 'File locked properly during operation');
$this->assertNull(null, $lockTypePost, 'No post hook, no lock check possible'); $this->assertNull($lockTypePost, 'No post hook, no lock check possible');
$this->assertEquals(ILockingProvider::LOCK_EXCLUSIVE, $lockTypeDuring, 'File still locked after fopen'); $this->assertEquals(ILockingProvider::LOCK_EXCLUSIVE, $lockTypeDuring, 'File still locked after fopen');