Skip to content

Commit

Permalink
Update FindCommandTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Sep 23, 2024
1 parent bbd9f03 commit d30fe71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Feature/FindCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<?php

use Binafy\ArtisanFinder\Commands\FindCommand;
use Laravel\Prompts\Key;
use Laravel\Prompts\Prompt;
use function Pest\Laravel\artisan;

test('find command work correctly', function () {
Prompt::fake(['u', 'e', Key::DOWN, Key::ENTER]);

artisan(FindCommand::class)
->expectsQuestion('Search for a command', 'event:clear')
->assertExitCode(0);
Expand Down

0 comments on commit d30fe71

Please sign in to comment.