diff --git a/features/bootstrap/GeneratorContext.php b/features/bootstrap/GeneratorContext.php index 238201d2..ea120b92 100644 --- a/features/bootstrap/GeneratorContext.php +++ b/features/bootstrap/GeneratorContext.php @@ -58,9 +58,11 @@ public function theSchemaFilesAreGeneratedIn($directory) */ public function theSchemaHasNotBeenGenerated() { - $finder = new Finder(); - $fs = new Filesystem(); - $fs->remove($finder->in('app/config/graphql/ezplatform')->files()); + if (file_exists('app/config/graphql/ezplatform')) { + $finder = new Finder(); + $fs = new Filesystem(); + $fs->remove($finder->in('app/config/graphql/ezplatform')->files()); + } } /**