Skip to content

Commit

Permalink
fixup! Added first generator test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Jul 1, 2019
1 parent 6046bef commit eb8eeb9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions features/bootstrap/GeneratorContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

/**
Expand Down

0 comments on commit eb8eeb9

Please sign in to comment.