diff options
author | Adam Williamson <awilliam@redhat.com> | 2014-11-10 17:49:35 -0800 |
---|---|---|
committer | Adam Williamson <awilliam@redhat.com> | 2014-11-10 17:49:35 -0800 |
commit | e0ae87051fb07c7f01b2b5bcf07df49469a30e5d (patch) | |
tree | bd28990c3fd90400e6b02c24e1dfcfd14f2cbcd6 | |
parent | 2023878d537374b47494eb8ce44d3757b3692626 (diff) | |
download | nextcloud-server-e0ae87051fb07c7f01b2b5bcf07df49469a30e5d.tar.gz nextcloud-server-e0ae87051fb07c7f01b2b5bcf07df49469a30e5d.zip |
storage test: use new file for testTouchCreateFile()
this test would never succeed, because the previous test -
testFOpen() - creates the file 'foo', but testTouchCreateFile()
starts out by asserting it doesn't exist. Change the test to
use a file called 'touch' instead (which does not previously
exist).
-rw-r--r-- | tests/lib/files/storage/storage.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php index cf42523a5e2..960eb137ea0 100644 --- a/tests/lib/files/storage/storage.php +++ b/tests/lib/files/storage/storage.php @@ -340,10 +340,10 @@ abstract class Storage extends \PHPUnit_Framework_TestCase { } public function testTouchCreateFile() { - $this->assertFalse($this->instance->file_exists('foo')); + $this->assertFalse($this->instance->file_exists('touch')); // returns true on success - $this->assertTrue($this->instance->touch('foo')); - $this->assertTrue($this->instance->file_exists('foo')); + $this->assertTrue($this->instance->touch('touch')); + $this->assertTrue($this->instance->file_exists('touch')); } public function testRecursiveRmdir() { |