diff --git a/tests/contexts/ProjectManagerContext.php b/tests/contexts/ProjectManagerContext.php index ab6972f..f680cd2 100644 --- a/tests/contexts/ProjectManagerContext.php +++ b/tests/contexts/ProjectManagerContext.php @@ -133,10 +133,8 @@ public function theProjectShouldNotBeSaved() { $projects = $this->getProjectsCase->getManagerProjects($this->projectManager); - foreach ($projects as $project) { - if ($project->getName() === $name) { - throw new RuntimeException('Project has not been saved'); - } + if (count($projects)) { + throw new RuntimeException('Project has created!'); } }