Kraken\_Module\Filesystem\_Partial\Filesystem\FsApiEraseDirPartial::testApiEraseDir_ErasesDir_WhenNodeIsDirectory PHP Method

testApiEraseDir_ErasesDir_WhenNodeIsDirectory() public method

    public function testApiEraseDir_ErasesDir_WhenNodeIsDirectory()
    {
        $test = $this->getTest();
        $fs = $this->createFilesystem();
        $pc = $this->getPrefixed('FILE_C');
        $d = $this->getPrefixed('DIR_A');
        $test->assertTrue($fs->exists($pc));
        $test->assertTrue($fs->exists($d));
        $fs->eraseDir($d);
        $test->assertFalse($fs->exists($pc));
        $test->assertTrue($fs->exists($d));
    }