Skip to content

Commit

Permalink
Fix BaseServiceTest
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Dec 18, 2024
1 parent 98d8f97 commit 3dafccd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/Feature/BaseServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ public function it_enables_services()
app()->instance('console', M::mock(Command::class, function ($mock) use ($service) {
$defaultPort = $service->defaultPort();
$mock->shouldReceive('askPromptQuestion')
->with('Which host port would you like meilisearch to use?', $defaultPort)
->with('Which host port would you like meilisearch to use?', $defaultPort, M::any())
->andReturn(7700);
$mock->shouldReceive('askPromptQuestion')
->with('What is the Docker volume name?', 'meili_data')
->with('What is the Docker volume name?', 'meili_data', M::any())
->andReturn('meili_data');
$mock->shouldReceive('askPromptQuestion')
->with('Which tag (version) of meilisearch would you like to use?', 'latest')
->with('Which tag (version) of meilisearch would you like to use?', 'latest', M::any())
->andReturn('v1.1.1');
$mock->shouldIgnoreMissing();
}));
Expand Down Expand Up @@ -80,13 +80,13 @@ public function it_can_receive_a_custom_image_in_the_tag()
app()->instance('console', M::mock(Command::class, function ($mock) use ($service) {
$defaultPort = $service->defaultPort();
$mock->shouldReceive('askPromptQuestion')
->with('Which host port would you like postgres to use?', $defaultPort)
->with('Which host port would you like postgres to use?', $defaultPort, M::any())
->andReturn(5432);
$mock->shouldReceive('askPromptQuestion')
->with('Which tag (version) of postgres would you like to use?', 'latest')
->with('Which tag (version) of postgres would you like to use?', 'latest', M::any())
->andReturn('timescale/timescaledb:latest-pg12');
$mock->shouldReceive('askPromptQuestion')
->with('What is the Docker volume name?', 'postgres_data')
->with('What is the Docker volume name?', 'postgres_data', M::any())
->andReturn('postgres_data');
$mock->shouldIgnoreMissing();
}));
Expand Down Expand Up @@ -133,10 +133,10 @@ public function it_can_receive_container_arguments_via_passthrough()
app()->instance('console', M::mock(Command::class, function ($mock) use ($service) {
$defaultPort = $service->defaultPort();
$mock->shouldReceive('askPromptQuestion')
->with('Which host port would you like _test_image to use?', $defaultPort)
->with('Which host port would you like _test_image to use?', $defaultPort, M::any())
->andReturn(12345);
$mock->shouldReceive('askPromptQuestion')
->with('Which tag (version) of _test_image would you like to use?', 'latest')
->with('Which tag (version) of _test_image would you like to use?', 'latest', M::any())
->andReturn('latest');
$mock->shouldIgnoreMissing();
}));
Expand Down Expand Up @@ -186,10 +186,10 @@ public function it_accepts_run_options_and_passthrough_options()
app()->instance('console', M::mock(Command::class, function ($mock) use ($service) {
$defaultPort = $service->defaultPort();
$mock->shouldReceive('askPromptQuestion')
->with('Which host port would you like _test_image to use?', $defaultPort)
->with('Which host port would you like _test_image to use?', $defaultPort, M::any())
->andReturn(12345);
$mock->shouldReceive('askPromptQuestion')
->with('Which tag (version) of _test_image would you like to use?', 'latest')
->with('Which tag (version) of _test_image would you like to use?', 'latest', M::any())
->andReturn('latest');
$mock->shouldIgnoreMissing();
}));
Expand Down

0 comments on commit 3dafccd

Please sign in to comment.