Skip to content

Commit

Permalink
add test for CommandRunner::_remap() with empty first params
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jul 13, 2020
1 parent 6ad591a commit 4ca4e38
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/system/CLI/CommandRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,13 @@ public function testBadCommand()
$this->assertStringContainsString('Command "bogus" not found', $result);
}

public function testRemapEmptyFirstParams()
{
$this->runner->_remap('anyvalue', null, 'list');
$result = CITestStreamFilter::$buffer;

// make sure the result looks like a command list
$this->assertStringContainsString('Lists the available commands.', $result);
}

}

0 comments on commit 4ca4e38

Please sign in to comment.