public function FeatureContext::createGroups in Open Social 8.4
Same name and namespace in other branches
- 8.9 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::createGroups()
- 8.3 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::createGroups()
- 8.5 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::createGroups()
- 8.6 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::createGroups()
- 8.7 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::createGroups()
- 8.8 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::createGroups()
- 10.3.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::createGroups()
- 10.0.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::createGroups()
- 10.1.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::createGroups()
- 10.2.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::createGroups()
Creates group of a given type provided in the form: | title | description | author | type | language | My title | My description | username | open_group | en | ... | ... | ... | ... | ...
@Given groups:
File
- tests/
behat/ features/ bootstrap/ FeatureContext.php, line 521
Class
- FeatureContext
- Defines application features from the specific context.
Namespace
Drupal\social\BehatCode
public function createGroups(TableNode $groupsTable) {
foreach ($groupsTable
->getHash() as $groupHash) {
$groupFields = (object) $groupHash;
try {
$group = $this
->groupCreate($groupFields);
$this->groups[$groupFields->title] = $group;
} catch (Exception $e) {
}
}
}