From: Robin Appelman Date: Mon, 26 Jan 2015 13:51:27 +0000 (+0100) Subject: Add unit test X-Git-Tag: v8.0.0RC1~16^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cec43df0f0c4b7e23e406788615bcbbe8738ab37;p=nextcloud-server.git Add unit test --- diff --git a/tests/lib/files/node/integration.php b/tests/lib/files/node/integration.php index d8c180cc844..456a4a0e287 100644 --- a/tests/lib/files/node/integration.php +++ b/tests/lib/files/node/integration.php @@ -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());