| @@ 104-123 (lines=20) @@ | ||
| 101 | /** |
|
| 102 | * @test |
|
| 103 | */ |
|
| 104 | public function seedCollectionContainsTwoSubGroups() |
|
| 105 | { |
|
| 106 | /** @var User $userSeed */ |
|
| 107 | $userSeed = GeneralUtility::makeInstance(User::class); |
|
| 108 | $userSeed->run(); |
|
| 109 | $seedCollection = GeneralUtility::makeInstance(SeedCollection::class); |
|
| 110 | ||
| 111 | $groups = []; |
|
| 112 | foreach ($seedCollection->toArray()['fe_groups'] as $key => $group) { |
|
| 113 | if ($group['title'] === 'SubGroup') { |
|
| 114 | $groups[$key] = $group; |
|
| 115 | } |
|
| 116 | } |
|
| 117 | $this->assertSame([ |
|
| 118 | 0 => 'NEW5', |
|
| 119 | 1 => 'NEW6', |
|
| 120 | 2 => 'NEW7', |
|
| 121 | 3 => 'NEW8', |
|
| 122 | ], array_keys($groups)); |
|
| 123 | } |
|
| 124 | ||
| 125 | /** |
|
| 126 | * @test |
|
| @@ 148-167 (lines=20) @@ | ||
| 145 | /** |
|
| 146 | * @test |
|
| 147 | */ |
|
| 148 | public function seedCollectionContainsFourSubGroups() |
|
| 149 | { |
|
| 150 | /** @var User $userSeed */ |
|
| 151 | $userSeed = GeneralUtility::makeInstance(User::class); |
|
| 152 | $userSeed->run(); |
|
| 153 | $seedCollection = GeneralUtility::makeInstance(SeedCollection::class); |
|
| 154 | ||
| 155 | $groups = []; |
|
| 156 | foreach ($seedCollection->toArray()['fe_groups'] as $key => $group) { |
|
| 157 | if ($group['title'] === 'SubGroup') { |
|
| 158 | $groups[$key] = $group; |
|
| 159 | } |
|
| 160 | } |
|
| 161 | $this->assertSame([ |
|
| 162 | 0 => 'NEW5', |
|
| 163 | 1 => 'NEW6', |
|
| 164 | 2 => 'NEW7', |
|
| 165 | 3 => 'NEW8', |
|
| 166 | ], array_keys($groups)); |
|
| 167 | } |
|
| 168 | ||
| 169 | /** |
|
| 170 | * @test |
|