Skip to content

Commit

Permalink
feat: remove method exists check
Browse files Browse the repository at this point in the history
refs: #100
  • Loading branch information
pirs1337 committed Dec 17, 2024
1 parent 2e6a8f4 commit 7d65b79
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Generators/AbstractTestsGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ protected function getInserts(): array

protected function isFactoryExists(string $modelName): bool
{
$modelClass = $this->getModelClass($modelName);

return $this->classExists('factories', "{$modelName}Factory") && method_exists($modelClass, 'factory');
return $this->classExists('factories', "{$modelName}Factory");
}

protected function isMethodExists($modelName, $method): bool
Expand Down

0 comments on commit 7d65b79

Please sign in to comment.