1 | <?php |
||
7 | class AbstractSetupCommandTest extends TestCase |
||
8 | { |
||
9 | /** |
||
10 | * Mocked command |
||
11 | * @var Mock_AbstractSetupCommand |
||
12 | */ |
||
13 | protected $command; |
||
14 | |||
15 | /** |
||
16 | * Set up the mocked command for testing |
||
17 | */ |
||
18 | public function setUp() |
||
40 | |||
41 | /** |
||
42 | * Test the getMagentoModuleName() method returns the actual module name when it exists |
||
43 | * @param string $moduleName |
||
44 | * |
||
45 | * @dataProvider validModuleNameProvider |
||
46 | */ |
||
47 | public function testShouldReturnModuleNameForExistingModule($moduleName) |
||
52 | |||
53 | /** |
||
54 | * Provide some inconsistently cased module names |
||
55 | * @return array |
||
56 | */ |
||
57 | public function validModuleNameProvider() |
||
66 | |||
67 | /** |
||
68 | * Ensure that an exception is thrown when a module doesn't exist |
||
69 | * @expectedException InvalidArgumentException |
||
70 | */ |
||
71 | public function testShouldThrowExceptionWhenModuleDoesntExist() |
||
75 | } |
||
76 |