| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class GroupAddTypo3TestData extends GroupAddTestData |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Returns the list of task names which this task depends on |
||
| 19 | * |
||
| 20 | * @return string[] List of task names |
||
| 21 | */ |
||
| 22 | public function after() : array |
||
| 23 | { |
||
| 24 | return ['Group']; |
||
| 25 | } |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Adds group test data |
||
| 30 | */ |
||
| 31 | public function up() |
||
| 32 | { |
||
| 33 | $this->info( 'Adding TYPO3 group test data', 'vv' ); |
||
| 34 | |||
| 35 | $this->db( 'db-group' )->exec( "DELETE FROM fe_groups WHERE title LIKE 'unitgroup%'" ); |
||
| 36 | |||
| 37 | $this->context()->setEditor( 'ai-typo3' ); |
||
|
|
|||
| 38 | $this->process(); |
||
| 39 | } |
||
| 40 | |||
| 41 | |||
| 42 | /** |
||
| 43 | * Returns the manager for the current setup task |
||
| 44 | * |
||
| 45 | * @param string $domain Domain name of the manager |
||
| 46 | * @param string $name Specific manager implemenation |
||
| 47 | * @return \Aimeos\MShop\Common\Manager\Iface Manager object |
||
| 48 | */ |
||
| 49 | protected function getManager( string $domain, string $name = 'Standard' ) : \Aimeos\MShop\Common\Manager\Iface |
||
| 56 | } |
||
| 57 | } |
||
| 58 |