Skip to content

Commit

Permalink
Add -n to the global-options-only test, so that it does not hang if t…
Browse files Browse the repository at this point in the history
…he alias is not found (Symfony will prompt for which command you might want to run instead in this instance).
  • Loading branch information
Greg Anderson committed Apr 5, 2024
1 parent 0054e20 commit 0ad2abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/AnnotatedCommandFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function testGlobalOptionsOnly()

$command = $this->commandFactory->createCommand($commandInfo, $this->commandFileInstance);

$input = new StringInput('global-options-only test');
$input = new StringInput('global-options-only -n test');
$this->assertRunCommandViaApplicationEquals($command, $input, "Arg is test, options[help] is false");
}

Expand Down

0 comments on commit 0ad2abb

Please sign in to comment.