mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 15:05:32 +00:00
Only delete files/folders if they exist on filesystem
This broke "add a folder" in manage-files.feature
This commit is contained in:
parent
7e37cc8e00
commit
3f13791404
@ -205,7 +205,7 @@ JS;
|
||||
public function cleanAssetsAfterScenario(ScenarioEvent $event)
|
||||
{
|
||||
foreach(\File::get() as $file) {
|
||||
$file->delete();
|
||||
if(file_exists($file->getFullPath())) $file->delete();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user