aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/node/file.php4
-rw-r--r--tests/lib/files/node/folder.php1
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++;
};