diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-04-10 13:45:36 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-04-10 13:48:24 +0200 |
commit | 258ad38fd3c1e3cdc4ec20238b166e78c334b814 (patch) | |
tree | 8a5b33c46ed787ef4af974ad24965046e151451b /tests | |
parent | 48dabd2c145be296b575fe1ff47b800fc31e06ee (diff) | |
download | nextcloud-server-258ad38fd3c1e3cdc4ec20238b166e78c334b814.tar.gz nextcloud-server-258ad38fd3c1e3cdc4ec20238b166e78c334b814.zip |
Fix touch for creating new 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 3d68efea5fc..0e22f26ae83 100644 --- a/tests/lib/files/storage/storage.php +++ b/tests/lib/files/storage/storage.php @@ -257,4 +257,10 @@ abstract class Storage extends \PHPUnit_Framework_TestCase { $content = stream_get_contents($fh); $this->assertEquals(file_get_contents($textFile), $content); } + + public function testTouchCreateFile(){ + $this->assertFalse($this->instance->file_exists('foo')); + $this->instance->touch('foo'); + $this->assertTrue($this->instance->file_exists('foo')); + } } |