Skip to content

Commit

Permalink
Update vendor publish command test to expect Laravel Prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 19, 2023
1 parent 7ac215b commit b008504
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public function test_command_prompts_for_provider_or_tag()

$this->artisan('vendor:publish')
->expectsChoice('Which provider or tag\'s files would you like to publish?', 'Tag: example-configs', [
'<comment>Publish files from all providers and tags listed below</comment>',
'<fg=gray>Provider:</> ExampleProvider',
'<fg=gray>Tag:</> example-configs',
'All providers and tags',
])
->assertExitCode(0);
}
Expand All @@ -60,7 +60,7 @@ public function test_unhelpful_publishers_are_removed()

$this->artisan('vendor:publish')
->expectsChoice('Which provider or tag\'s files would you like to publish?', 'Tag: example-configs', [
'<comment>Publish files from all providers and tags listed below</comment>',
'All providers and tags',
])->assertExitCode(0);
}

Expand All @@ -73,7 +73,7 @@ public function test_config_group_is_renamed_to_be_more_helpful()

$this->artisan('vendor:publish')
->expectsChoice('Which provider or tag\'s files would you like to publish?', 'Tag: vendor-configs', [
'<comment>Publish files from all providers and tags listed below</comment>',
'All providers and tags',
'<fg=gray>Tag:</> vendor-configs',
])->assertExitCode(0);
}
Expand Down

0 comments on commit b008504

Please sign in to comment.