Skip to content

Commit

Permalink
Revert "Indent warning message empty collections"
Browse files Browse the repository at this point in the history
This reverts commit 9945e96.
  • Loading branch information
caendesilva committed Dec 30, 2022
1 parent 65cdf06 commit faa293b
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 @@ -207,7 +207,7 @@ protected function handleEmptyOptionsCollection(PublicationField $field, string
}

$this->newLine();
$this->warn(" <fg=red>Warning:</> $message");
$this->warn("<fg=red>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 @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit faa293b

Please sign in to comment.