public function FeatureContext::iSelectGroup in Open Social 8
Same name and namespace in other branches
- 8.2 tests/behat/features/bootstrap/FeatureContext.php \FeatureContext::iSelectGroup()
@When I select group :group
File
- tests/
behat/ features/ bootstrap/ FeatureContext.php, line 231
Class
- FeatureContext
- Defines application features from the specific context.
Code
public function iSelectGroup($group) {
$option = $this
->getGroupIdFromTitle($group);
if (!$option) {
throw new \InvalidArgumentException(sprintf('Could not find group for "%s"', $group));
}
$this
->getSession()
->getPage()
->selectFieldOption('edit-groups', $option);
}