Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
36 | public function testShouldExecuteCorrectlyAndDisplaySuccessMessage() |
||
37 | { |
||
38 | $this->commandTester->execute( |
||
39 | array( |
||
40 | 'command' => $this->command->getName(), |
||
41 | 'module' => 'magento_customer', |
||
42 | 'version' => '2.0.0' |
||
43 | ) |
||
44 | ); |
||
45 | |||
46 | $this->assertContains( |
||
47 | 'Successfully updated: "Magento_Customer" to version: "2.0.0"', |
||
48 | $this->commandTester->getDisplay() |
||
49 | ); |
||
50 | } |
||
51 | |||
67 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: