Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-11 19:22:40 +0300
committerRobin Appelman <icewind@owncloud.com>2016-02-11 19:22:40 +0300
commitc3e4ced64a0bab8ea246906e035685a15b51e363 (patch)
treed3b25aab302becb0a06f159ef50dc4a978803dd5 /tests
parentdfe267424ffbecaef7edff20d1977532de7a5702 (diff)
fix getNodeForPath for non existing part files
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/storage/storage.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php
index 42bd491df5c..f3d265df2de 100644
--- a/tests/lib/files/storage/storage.php
+++ b/tests/lib/files/storage/storage.php
@@ -608,4 +608,10 @@ abstract class Storage extends \Test\TestCase {
$stat = $this->instance->stat('foo.txt');
$this->assertEquals(6, $stat['size']);
}
+
+ public function testPartFile() {
+ $this->instance->file_put_contents('bar.txt.part', 'bar');
+ $this->instance->rename('bar.txt.part', 'bar.txt');
+ $this->assertEquals('bar', $this->instance->file_get_contents('bar.txt'));
+ }
}