diff --git a/packages/framework/tests/Feature/Actions/CreatesNewPublicationPageTest.php b/packages/framework/tests/Feature/Actions/CreatesNewPublicationPageTest.php index cd357811858..1da75a8b27a 100644 --- a/packages/framework/tests/Feature/Actions/CreatesNewPublicationPageTest.php +++ b/packages/framework/tests/Feature/Actions/CreatesNewPublicationPageTest.php @@ -53,19 +53,19 @@ public function testCreate() ', file_get_contents(Hyde::path('test-publication/hello-world.md'))); } - protected function makePublicationType(): PublicationType + protected function makePublicationType(array $fields = [ + [ + 'type' => 'string', + 'name' => 'title', + 'min' => 0, + 'max' => 128, + ], + ]): PublicationType { return new PublicationType( 'test', 'title', - fields: [ - [ - 'type' => 'string', - 'name' => 'title', - 'min' => 0, - 'max' => 128, - ], - ], + fields: $fields, directory: 'test-publication', ); }