Skip to content

Commit

Permalink
Test double quotes for passthroughs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Jul 5, 2022
1 parent 963f781 commit 8219219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/EnableCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ function it_removes_options()
/** @test */
function it_extracts_passthrough_options()
{
$cli = explode(' ', "./takeout enable meilisearch postgresql mysql --default -- -e 'abc' --other-flag");
$cli = explode(' ', "./takeout enable meilisearch postgresql mysql --default -- -e 'abc' --other-flag -t \"double-quote\"");

$command = new EnableCommand;

$this->assertEquals(['-e', "'abc'", '--other-flag'], $command->extractPassthroughOptions($cli));
$this->assertEquals(['-e', "'abc'", '--other-flag', '-t', '"double-quote"'], $command->extractPassthroughOptions($cli));
}
}

0 comments on commit 8219219

Please sign in to comment.