diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-02 10:12:54 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-02 10:12:54 +0100 |
commit | c46ea3024836fc020ad6552ef7b579c3be1faf63 (patch) | |
tree | 9ab3c2315ed911b220c3469d3f3a154f167eb08c /tests | |
parent | f840d8dee76c5130ebd20a0c14a322507af1c274 (diff) | |
parent | 0d63e95a5d05b4f357c0725c8476bbd0b056712b (diff) | |
download | nextcloud-server-c46ea3024836fc020ad6552ef7b579c3be1faf63.tar.gz nextcloud-server-c46ea3024836fc020ad6552ef7b579c3be1faf63.zip |
Merge pull request #20865 from owncloud/post-delete-meta
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++; }; |