diff --git a/packages/framework/src/Console/Commands/MakePublicationCommand.php b/packages/framework/src/Console/Commands/MakePublicationCommand.php index 17e5de17548..547b652e576 100644 --- a/packages/framework/src/Console/Commands/MakePublicationCommand.php +++ b/packages/framework/src/Console/Commands/MakePublicationCommand.php @@ -207,7 +207,7 @@ protected function handleEmptyOptionsCollection(PublicationField $field, string } $this->newLine(); - $this->warn(" Warning: $message"); + $this->warn("Warning: $message"); if ($this->confirm('Would you like to skip this field?', true)) { return null; } else { diff --git a/packages/framework/tests/Feature/Commands/MakePublicationCommandTest.php b/packages/framework/tests/Feature/Commands/MakePublicationCommandTest.php index d48cb542412..0332633c9f7 100644 --- a/packages/framework/tests/Feature/Commands/MakePublicationCommandTest.php +++ b/packages/framework/tests/Feature/Commands/MakePublicationCommandTest.php @@ -388,7 +388,7 @@ public function test_image_input_with_no_images() ]); $this->artisan('make:publication test-publication') - ->expectsOutput(' Warning: No media files found in directory _media/test-publication/') + ->expectsOutput('Warning: No media files found in directory _media/test-publication/') ->expectsConfirmation('Would you like to skip this field?') ->expectsOutput('Error: Unable to locate any media files for this publication type') ->assertExitCode(1); @@ -408,7 +408,7 @@ public function test_image_input_with_no_images_but_skips() ]); $this->artisan('make:publication test-publication') - ->expectsOutput(' Warning: No media files found in directory _media/test-publication/') + ->expectsOutput('Warning: No media files found in directory _media/test-publication/') ->expectsConfirmation('Would you like to skip this field?', 'yes') ->doesntExpectOutput('Error: Unable to locate any media files for this publication type') ->assertExitCode(0); @@ -439,7 +439,7 @@ public function test_tag_input_with_no_tags() ]); $this->artisan('make:publication test-publication') - ->expectsOutput(' Warning: No tags for this publication type found in tags.json') + ->expectsOutput('Warning: No tags for this publication type found in tags.json') ->expectsConfirmation('Would you like to skip this field?') ->expectsOutput('Error: Unable to locate any tags for this publication type') ->assertExitCode(1); @@ -459,7 +459,7 @@ public function test_tag_input_with_no_tags_but_skips() ]); $this->artisan('make:publication test-publication') - ->expectsOutput(' Warning: No tags for this publication type found in tags.json') + ->expectsOutput('Warning: No tags for this publication type found in tags.json') ->expectsConfirmation('Would you like to skip this field?', 'yes') ->doesntExpectOutput('Error: Unable to locate any tags for this publication type') ->assertExitCode(0); @@ -491,7 +491,7 @@ public function test_handleEmptyOptionsCollection_for_required_field() ]); $this->artisan('make:publication test-publication') - ->doesntExpectOutput(' Warning: No tags for this publication type found in tags.json') + ->doesntExpectOutput('Warning: No tags for this publication type found in tags.json') ->expectsOutput('Error: Unable to create publication: No tags for this publication type found in tags.json') ->assertExitCode(1); }