]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add unit test
authorRobin Appelman <icewind@owncloud.com>
Mon, 26 Jan 2015 13:51:27 +0000 (14:51 +0100)
committerRobin Appelman <icewind@owncloud.com>
Wed, 28 Jan 2015 12:44:39 +0000 (13:44 +0100)
tests/lib/files/node/integration.php

index d8c180cc84466a08df92d1bf49a81b74337dc982..456a4a0e287f116e4a22891cd14a6c3b98413d2f 100644 (file)
@@ -80,7 +80,9 @@ class IntegrationTests extends \Test\TestCase {
                $this->assertEquals('text/plain', $file->getMimeType());
                $this->assertEquals('qwerty', $file->getContent());
                $this->assertFalse($this->root->nodeExists('/bar.txt'));
-               $file->move('/bar.txt');
+               $target = $file->move('/bar.txt');
+               $this->assertEquals($id, $target->getId());
+               $this->assertEquals($id, $file->getId());
                $this->assertFalse($this->root->nodeExists('/foo.txt'));
                $this->assertTrue($this->root->nodeExists('/bar.txt'));
                $this->assertEquals('bar.txt', $file->getName());