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() |
||
41 | |||
42 | /** |
||
43 | * Test the getMagentoModuleName() method returns the actual module name when it exists |
||
44 | * @param string $moduleName |
||
45 | * |
||
46 | * @dataProvider validModuleNameProvider |
||
47 | */ |
||
48 | public function testShouldReturnModuleNameForExistingModule($moduleName) |
||
53 | |||
54 | /** |
||
55 | * Provide some inconsistently cased module names |
||
56 | * @return array |
||
57 | */ |
||
58 | public function validModuleNameProvider() |
||
67 | |||
68 | /** |
||
69 | * Ensure that an exception is thrown when a module doesn't exist |
||
70 | * @expectedException InvalidArgumentException |
||
71 | */ |
||
72 | public function testShouldThrowExceptionWhenModuleDoesntExist() |
||
76 | } |
||
77 |