Skip to content

Commit

Permalink
Indent warning message empty collections
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 28, 2022
1 parent 0088192 commit 9945e96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,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);
Expand All @@ -337,7 +337,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);
Expand All @@ -359,7 +359,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);
Expand All @@ -379,7 +379,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);
Expand All @@ -402,7 +402,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);
}
Expand Down

0 comments on commit 9945e96

Please sign in to comment.