diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-19 09:44:53 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-19 09:44:53 +0200 |
commit | f24179a327c102d6ed7687d0445ac042ff2b373e (patch) | |
tree | 6d04bed7d0bb7245fa2f01a907712316888da801 /tests/lib | |
parent | e88a9b2fed7e395bb80c87d837fc688b74dc667e (diff) | |
download | nextcloud-server-f24179a327c102d6ed7687d0445ac042ff2b373e.tar.gz nextcloud-server-f24179a327c102d6ed7687d0445ac042ff2b373e.zip |
Fix deprecated private method
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/files/view.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php index 86413c61aa1..d33c9f31503 100644 --- a/tests/lib/files/view.php +++ b/tests/lib/files/view.php @@ -1508,7 +1508,7 @@ class View extends \Test\TestCase { $defaultView = new \OC\Files\View('/foo/files'); $defaultRootValue->setValue($defaultView); $view = new \OC\Files\View($root); - $result = \Test_Helper::invokePrivate($view, 'shouldEmitHooks', [$path]); + $result = $this->invokePrivate($view, 'shouldEmitHooks', [$path]); $defaultRootValue->setValue($oldRoot); $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_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'); |