From c3e4ced64a0bab8ea246906e035685a15b51e363 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 11 Feb 2016 17:22:40 +0100 Subject: fix getNodeForPath for non existing part files --- tests/lib/files/storage/storage.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/lib/files/storage') 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')); + } } -- cgit v1.2.3