Skip to content

Commit 7d65b79

Browse files
committed
feat: remove method exists check
refs: #100
1 parent 2e6a8f4 commit 7d65b79

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Generators/AbstractTestsGenerator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ protected function getInserts(): array
9090

9191
protected function isFactoryExists(string $modelName): bool
9292
{
93-
$modelClass = $this->getModelClass($modelName);
94-
95-
return $this->classExists('factories', "{$modelName}Factory") && method_exists($modelClass, 'factory');
93+
return $this->classExists('factories', "{$modelName}Factory");
9694
}
9795

9896
protected function isMethodExists($modelName, $method): bool

0 commit comments

Comments
 (0)