Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoSector committed Nov 7, 2018
1 parent eb4f938 commit 24405df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/CommandProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public function testProcess()
'test',
['1'],
$parameterStrategy,
[1]
[1],
$command->getCallback()
);

$commandProcessor = new CommandProcessor();
Expand Down
6 changes: 5 additions & 1 deletion tests/ProcessedCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@

class ProcessedCommandTest extends TestCase
{
// mock
public function foo()
{

}
public function testGetApplicableStrategy()
{
$parameterStrategy = new \WildPHP\Commands\ParameterStrategy();
$processedCommand = new ProcessedCommand('test', ['test'], $parameterStrategy, ['ing']);
$processedCommand = new ProcessedCommand('test', ['test'], $parameterStrategy, ['ing'], [$this, 'foo']);

$this->assertSame($parameterStrategy, $processedCommand->getApplicableStrategy());
$this->assertSame(['ing'], $processedCommand->getConvertedParameters());
Expand Down

0 comments on commit 24405df

Please sign in to comment.