public function FeatureContext::cleanupGroups in Open Social 8
Same name and namespace in other branches
- 8.2 tests/behat/features/bootstrap/FeatureContext.php \FeatureContext::cleanupGroups()
Remove any groups that were created.
@AfterScenario
File
- tests/
behat/ features/ bootstrap/ FeatureContext.php, line 483
Class
- FeatureContext
- Defines application features from the specific context.
Code
public function cleanupGroups(AfterScenarioScope $scope) {
if (!empty($this->groups)) {
foreach ($this->groups as $group) {
$group
->delete();
}
}
}