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() |
||
30 | |||
31 | /** |
||
32 | * Test the getMagentoModuleName() method returns the actual module name when it exists |
||
33 | * @param string $moduleName |
||
34 | * |
||
35 | * @dataProvider validModuleNameProvider |
||
36 | */ |
||
37 | public function testShouldReturnModuleNameForExistingModule($moduleName) |
||
42 | |||
43 | /** |
||
44 | * Provide some inconsistently cased module names |
||
45 | * @return array |
||
46 | */ |
||
47 | public function validModuleNameProvider() |
||
56 | |||
57 | /** |
||
58 | * Ensure that an exception is thrown when a module doesn't exist |
||
59 | * @expectedException InvalidArgumentException |
||
60 | */ |
||
61 | public function testShouldThrowExceptionWhenModuleDoesntExist() |
||
65 | } |
||
66 |