]> source.dussan.org Git - nextcloud-server.git/commitdiff
upda tests
authorRobin Appelman <icewind@owncloud.com>
Thu, 9 Apr 2015 13:13:56 +0000 (15:13 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 13 Apr 2015 15:10:02 +0000 (17:10 +0200)
tests/lib/files/node/integration.php

index 4e3626072401c4a21a10613910d37f333cfe3632..545793be54a083646e7acf4ac11d6e7b0e996670 100644 (file)
@@ -37,11 +37,6 @@ class IntegrationTests extends \Test\TestCase {
 
                \OC_Hook::clear('OC_Filesystem');
 
-               \OC_Hook::connect('OC_Filesystem', 'post_write', '\OC\Files\Cache\Updater', 'writeHook');
-               \OC_Hook::connect('OC_Filesystem', 'post_delete', '\OC\Files\Cache\Updater', 'deleteHook');
-               \OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Updater', 'renameHook');
-               \OC_Hook::connect('OC_Filesystem', 'post_touch', '\OC\Files\Cache\Updater', 'touchHook');
-
                $user = new User($this->getUniqueID('user'), new \OC_User_Dummy);
                $this->loginAsUser($user->getUID());
 
@@ -83,7 +78,7 @@ class IntegrationTests extends \Test\TestCase {
                $this->assertEquals('bar.txt', $file->getInternalPath());
 
                $file->move('/substorage/bar.txt');
-               $this->assertNotEquals($id, $file->getId());
+               $this->assertEquals($id, $file->getId());
                $this->assertEquals('qwerty', $file->getContent());
        }