diff --git a/src/Factory/CategoryFactory.php b/src/Factory/CategoryFactory.php index e141824..86d6c15 100644 --- a/src/Factory/CategoryFactory.php +++ b/src/Factory/CategoryFactory.php @@ -15,10 +15,13 @@ final class CategoryFactory extends PersistentProxyObjectFactory return Category::class; } - protected function defaults(string $id = 'test'): array|callable - { + protected function defaults( + string $id = 'test', + string $name = 'Test Category', + ): array|callable { return [ 'id' => $id, + 'name' => $name, ]; }