diff --git a/tests/Autoload/FactoryTest.php b/tests/Autoload/FactoryTest.php index 3b49942..2de51c0 100644 --- a/tests/Autoload/FactoryTest.php +++ b/tests/Autoload/FactoryTest.php @@ -62,6 +62,9 @@ expect(Factory::resolveFactoryName($modelClass)) ->toEqual('Database\Factories\RegularModelFactory'); + + expect($modelClass::factory()) + ->toBeInstanceOf('Database\Factories\RegularModelFactory'); }); });