Kraken\_Module\Filesystem\_Partial\Filesystem\FsApiEraseFilePartial::testApiEraseFile_ErasesNode_WhenNodeIsFile PHP Method

testApiEraseFile_ErasesNode_WhenNodeIsFile() public method

    public function testApiEraseFile_ErasesNode_WhenNodeIsFile()
    {
        $test = $this->getTest();
        $fs = $this->createFilesystem();
        $p = $this->getPrefixed('FILE_A');
        $contents = 'FILE_A_TEXT';
        $test->assertTrue($fs->exists($p));
        $test->assertEquals($contents, $fs->read($p));
        $fs->eraseFile($p);
        $test->assertEquals('', $fs->read($p));
    }