diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-12-01 13:22:58 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-12-01 13:22:58 +0100 |
commit | 0d63e95a5d05b4f357c0725c8476bbd0b056712b (patch) | |
tree | c49907896a323ec55b1c34f7aebd682fd8c829af /tests | |
parent | 36660734a62b0f388b4d1dcc70f1bfaae620bf28 (diff) | |
download | nextcloud-server-0d63e95a5d05b4f357c0725c8476bbd0b056712b.tar.gz nextcloud-server-0d63e95a5d05b4f357c0725c8476bbd0b056712b.zip |
Add metadata to post delete hooks
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/node/file.php | 4 | ||||
-rw-r--r-- | tests/lib/files/node/folder.php | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/files/node/file.php b/tests/lib/files/node/file.php index c431a2eb366..d0072949c7f 100644 --- a/tests/lib/files/node/file.php +++ b/tests/lib/files/node/file.php @@ -76,6 +76,8 @@ class File extends \Test\TestCase { $test->assertInstanceOf('\OC\Files\Node\NonExistingFile', $node); $test->assertEquals('foo', $node->getInternalPath()); $test->assertEquals('/bar/foo', $node->getPath()); + $test->assertEquals(1, $node->getId()); + $test->assertEquals('text/plain', $node->getMimeType()); $hooksRun++; }; @@ -94,7 +96,7 @@ class File extends \Test\TestCase { $view->expects($this->any()) ->method('getFileInfo') ->with('/bar/foo') - ->will($this->returnValue($this->getFileInfo(array('permissions' => \OCP\Constants::PERMISSION_ALL, 'fileid' => 1)))); + ->will($this->returnValue($this->getFileInfo(array('permissions' => \OCP\Constants::PERMISSION_ALL, 'fileid' => 1, 'mimetype' => 'text/plain')))); $view->expects($this->once()) ->method('unlink') diff --git a/tests/lib/files/node/folder.php b/tests/lib/files/node/folder.php index 2c9339bb6dc..d95e1b5d2b2 100644 --- a/tests/lib/files/node/folder.php +++ b/tests/lib/files/node/folder.php @@ -82,6 +82,7 @@ class Folder extends \Test\TestCase { $test->assertInstanceOf('\OC\Files\Node\NonExistingFolder', $node); $test->assertEquals('foo', $node->getInternalPath()); $test->assertEquals('/bar/foo', $node->getPath()); + $test->assertEquals(1, $node->getId()); $hooksRun++; }; |