diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-02-11 19:22:40 +0300 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-02-11 19:22:40 +0300 |
commit | c3e4ced64a0bab8ea246906e035685a15b51e363 (patch) | |
tree | d3b25aab302becb0a06f159ef50dc4a978803dd5 /tests | |
parent | dfe267424ffbecaef7edff20d1977532de7a5702 (diff) |
fix getNodeForPath for non existing part files
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/storage/storage.php | 6 |
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')); + } } |