Skip to content

Commit

Permalink
Try restoring factory instance assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Nov 17, 2024
1 parent 5352bdd commit 7374d69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Autoload/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@

expect(Factory::resolveFactoryName($modelClass))
->toEqual('Database\Factories\RegularModelFactory');

expect($modelClass::factory())
->toBeInstanceOf('Database\Factories\RegularModelFactory');
});
});

Expand Down

0 comments on commit 7374d69

Please sign in to comment.