mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
remove tests from the wrong test method
This commit is contained in:
parent
818e2a364a
commit
37254744b5
1 changed files with 0 additions and 10 deletions
|
|
@ -127,16 +127,6 @@ abstract class Storage extends \PHPUnit_Framework_TestCase {
|
|||
$this->assertFalse($this->instance->is_dir('/folder'));
|
||||
$this->assertFalse($this->instance->is_dir('/folder/sub_a'));
|
||||
$this->assertFalse($this->instance->file_exists('/folder/sub_a/file.txt'));
|
||||
|
||||
// check if it's working inside directories as well
|
||||
$this->instance->mkdir('/folder');
|
||||
$this->instance->file_put_contents('/folder/lorem.txt', $sourceText);
|
||||
$this->assertFalse($this->instance->is_dir('/folder/lorem.txt'));
|
||||
$this->assertEquals($sourceText, $this->instance->file_get_contents('/folder/lorem.txt'), 'data returned from file_get_contents is not equal to the source data');
|
||||
$this->instance->file_put_contents('/folder/lorem.txt', '');
|
||||
$this->assertEquals('', $this->instance->file_get_contents('/folder/lorem.txt'), 'file not emptied');
|
||||
$this->instance->rmdir('/folder');
|
||||
$this->assertFalse($this->instance->file_exists('/folder/lorem.txt'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue