Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
gcavanunez committed Aug 15, 2024
1 parent fa611a4 commit 6b18b53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/Feature/DisableCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function it_can_disable_a_service_from_menu()
array_push($disableableServices, '<info>Exit</>');

$this->artisan('disable')
->expectsChoice('Takeout containers to disable', $postgressName, $disableableServices)
->expectsChoice('Takeout containers to disable', $postgressName, array_values($disableableServices))
->assertExitCode(0);
} else {
$menuMock = $this->mock(Menu::class, function ($mock) use ($postgressId) {
Expand Down
11 changes: 3 additions & 8 deletions tests/Feature/EnableCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
use App\Services\MeiliSearch;
use App\Services\PostgreSql;
use App\Shell\Docker;
use Illuminate\Console\Command;
use Laravel\Prompts\Prompt;
use Laravel\Prompts\SearchPrompt;
use NunoMaduro\LaravelConsoleMenu\Menu;
use PHPUnit\Framework\Assert;
use Tests\TestCase;

class EnableCommandTest extends TestCase
Expand Down Expand Up @@ -66,7 +61,7 @@ function it_can_enable_a_service_from_menu()
'Database: PostgreSQL',
'Search: MeiliSearch',
'meilisearch',
'postgresql',
$postgres,
];

$this->artisan('enable')
Expand All @@ -75,11 +70,11 @@ function it_can_enable_a_service_from_menu()

$menuItems = [
'Database: PostgreSQL',
'postgresql',
$postgres,
];

$this->artisan('enable')
->expectsChoice('Takeout containers to enable', 'PostgreSQL', $menuItems)
->expectsChoice('Takeout containers to enable', $postgres, $menuItems)
->assertExitCode(0);
}
}
Expand Down

0 comments on commit 6b18b53

Please sign in to comment.