diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-01-26 14:51:27 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-01-28 13:44:39 +0100 |
commit | cec43df0f0c4b7e23e406788615bcbbe8738ab37 (patch) | |
tree | 2b011643b95f88c66cb54db6662856dbea486c13 /tests | |
parent | 8c9f1a982c48db4601ea7ba33b31fca342e03ded (diff) | |
download | nextcloud-server-cec43df0f0c4b7e23e406788615bcbbe8738ab37.tar.gz nextcloud-server-cec43df0f0c4b7e23e406788615bcbbe8738ab37.zip |
Add unit test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/node/integration.php | 4 |
1 files changed, 3 insertions, 1 deletions
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()); |