diff --git a/tests/CommandProcessorTest.php b/tests/CommandProcessorTest.php index 46f0650..dfacf10 100644 --- a/tests/CommandProcessorTest.php +++ b/tests/CommandProcessorTest.php @@ -49,7 +49,8 @@ public function testProcess() 'test', ['1'], $parameterStrategy, - [1] + [1], + $command->getCallback() ); $commandProcessor = new CommandProcessor(); diff --git a/tests/ProcessedCommandTest.php b/tests/ProcessedCommandTest.php index bbd986a..91ea5d7 100644 --- a/tests/ProcessedCommandTest.php +++ b/tests/ProcessedCommandTest.php @@ -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());