private function FeatureContext::getRegion in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 behat-tests/features/bootstrap/FeatureContext.php \FeatureContext::getRegion()
Thin wrapper over Drupal MinkContext's getRegion function.
Parameters
$region: The region identifier to load.
Return value
\Behat\Mink\Element\NodeElement|null The region element node or null if not found.
Throws
\Exception If the region cannot be found on the current page.
5 calls to FeatureContext::getRegion()
- FeatureContext::assertModalWindowWithTitle in behat-tests/
features/ bootstrap/ FeatureContext.php - @Then /^I should see the modal with title "([^"]*)"$/
- FeatureContext::assertNoRegion in behat-tests/
features/ bootstrap/ FeatureContext.php - Helper function to assert that a particular region is not visible.
- FeatureContext::findElementInRegion in behat-tests/
features/ bootstrap/ FeatureContext.php - Helper function to return an element in a particular region.
- FeatureContext::findLinkInRegion in behat-tests/
features/ bootstrap/ FeatureContext.php - Helper function to return a link in a particular region.
- FeatureContext::findLinksInRegion in behat-tests/
features/ bootstrap/ FeatureContext.php - Helper function to return any link in a particular region marching the link by id, title, text, or alt.
File
- behat-tests/
features/ bootstrap/ FeatureContext.php, line 950
Class
- FeatureContext
- Defines application features from the specific context.
Code
private function getRegion($region) {
return $this->contexts['Drupal\\DrupalExtension\\Context\\MinkContext']
->getRegion($region);
}