diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-13 18:24:00 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-13 18:24:00 +0100 |
commit | 248c571c56b09ccabcc5a881500fd831be424d3c (patch) | |
tree | 8467ba4df17b6b986f9074398e6099d4de1acca0 /tests | |
parent | 2344c8e07d90d698a3c63fa50ce955d980eb4bab (diff) | |
parent | c3e4ced64a0bab8ea246906e035685a15b51e363 (diff) | |
download | nextcloud-server-248c571c56b09ccabcc5a881500fd831be424d3c.tar.gz nextcloud-server-248c571c56b09ccabcc5a881500fd831be424d3c.zip |
Merge pull request #22331 from owncloud/dav-nonexisting-part
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')); + } } |