Skip to content

Commit

Permalink
test: use default in command property (#230)
Browse files Browse the repository at this point in the history
- change test from default cli to command property
  • Loading branch information
SonyPradana authored Oct 30, 2023
1 parent 2e81d05 commit 64ee717
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Integrate/Console/KarnelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function itCanCallCommandWithDefaultOption()
{
$karnel = new NormalCommand($this->app);
ob_start();
$exit = $karnel->handle(['cli', 'use:default_option', '--default="test"']);
$exit = $karnel->handle(['cli', 'use:default_option']);
$out = ob_get_clean();

$this->assertEquals(0, $exit);
Expand Down Expand Up @@ -188,6 +188,9 @@ protected function commands()
new CommandMap([
'pattern' => 'use:default_option',
'fn' => [FoundedCommand::class, 'default'],
'default' => [
'default' => 'test',
],
]),
];
}
Expand Down

0 comments on commit 64ee717

Please sign in to comment.