1 | <?php |
||
10 | class AbstractSetupCommandTest extends TestCase |
||
11 | { |
||
12 | /** |
||
13 | * Test the getMagentoModuleName() method returns the actual module name when it exists |
||
14 | * @param string $moduleName |
||
15 | * @dataProvider validModuleNameProvider |
||
16 | */ |
||
17 | public function testShouldReturnModuleNameForExistingModule($moduleName) |
||
24 | |||
25 | /** |
||
26 | * Provide some inconsistently cased module names |
||
27 | * @return array |
||
28 | */ |
||
29 | public function validModuleNameProvider() |
||
38 | |||
39 | /** |
||
40 | * Ensure that an exception is thrown when a module doesn't exist |
||
41 | * @expectedException InvalidArgumentException |
||
42 | */ |
||
43 | public function testShouldThrowExceptionWhenModuleDoesntExist() |
||
47 | |||
48 | /** |
||
49 | * Return a mocked test subject |
||
50 | * @return Mock_ChangeVersionCommand |
||
51 | */ |
||
52 | protected function getSubjectMock() |
||
75 | } |
||
76 |