| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function testExecute($value) |
||
| 17 | { |
||
| 18 | // Check if config gets set |
||
| 19 | $this->assertDisplayContains( |
||
| 20 | [ |
||
| 21 | 'command' => 'config:env:set', |
||
| 22 | 'key' => 'magerun.test', |
||
| 23 | 'value' => $value |
||
| 24 | ], |
||
| 25 | 'Config magerun.test successfully set to ' . $value |
||
| 26 | ); |
||
| 27 | |||
| 28 | // Check for idempotency |
||
| 29 | $this->assertDisplayContains( |
||
| 30 | [ |
||
| 31 | 'command' => 'config:env:set', |
||
| 32 | 'key' => 'magerun.test', |
||
| 33 | 'value' => $value, |
||
| 34 | '--verbose' => true // Add dummy option to force different input hash |
||
| 35 | ], |
||
| 36 | 'Config was already set' |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 51 |