|
@@ 689-694 (lines=6) @@
|
| 686 |
|
} |
| 687 |
|
|
| 688 |
|
$hasAddedLocation = false; |
| 689 |
|
foreach ($userLocations as $location) { |
| 690 |
|
if ($location->parentLocationId == $userGroup->getVersionInfo()->getContentInfo()->mainLocationId) { |
| 691 |
|
$hasAddedLocation = true; |
| 692 |
|
break; |
| 693 |
|
} |
| 694 |
|
} |
| 695 |
|
|
| 696 |
|
if (!$hasAddedLocation) { |
| 697 |
|
self::fail('Failed assigning user to user group'); |
|
@@ 748-753 (lines=6) @@
|
| 745 |
|
|
| 746 |
|
if (is_array($userLocations) && !empty($userLocations)) { |
| 747 |
|
$hasRemovedLocation = false; |
| 748 |
|
foreach ($userLocations as $location) { |
| 749 |
|
if ($location->parentLocationId == $userGroup->getVersionInfo()->getContentInfo()->mainLocationId) { |
| 750 |
|
$hasRemovedLocation = true; |
| 751 |
|
break; |
| 752 |
|
} |
| 753 |
|
} |
| 754 |
|
|
| 755 |
|
if ($hasRemovedLocation) { |
| 756 |
|
self::fail('Failed removing a user from user group'); |