summaryrefslogtreecommitdiffstats
path: root/tests/lib/files/storage/storage.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/files/storage/storage.php')
-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'));
+ }
}