refactor: move logic into boolean method in TestCaseFactory

This commit is contained in:
Jordan Brauer
2021-06-30 09:51:49 -05:00
parent 8e22803797
commit dc75b34deb
3 changed files with 10 additions and 2 deletions

View File

@ -235,4 +235,12 @@ final class TestCaseFactory
return $classFQN;
}
/**
* Determine if the test case will receive argument input from Pest, or not.
*/
public function receivesArguments(): bool
{
return $this->dependent === true || count($this->datasets) > 0;
}
}