Merge pull request #12093 from AdamWill/storage-test-touch

storage test: use new file for testTouchCreateFile()
remotes/origin/fix-10825
Morris Jobke 11 years ago
commit 710241f056
  1. 6
      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() {

Loading…
Cancel
Save