From eb8eeb9a92f4ddc1acce1aae31caec85aa1e8964 Mon Sep 17 00:00:00 2001 From: Bertrand Dunogier Date: Mon, 1 Jul 2019 14:03:48 -0400 Subject: [PATCH] fixup! Added first generator test --- features/bootstrap/GeneratorContext.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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()); + } } /**