aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-13 18:24:00 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-13 18:24:00 +0100
commit248c571c56b09ccabcc5a881500fd831be424d3c (patch)
tree8467ba4df17b6b986f9074398e6099d4de1acca0 /tests
parent2344c8e07d90d698a3c63fa50ce955d980eb4bab (diff)
parentc3e4ced64a0bab8ea246906e035685a15b51e363 (diff)
downloadnextcloud-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.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'));
+ }
}