src/Drupal/DrupalExtension/Context/MessageContext.php 1 location
|
@@ 248-254 (lines=7) @@
|
| 245 |
|
* @param $name |
| 246 |
|
* string CSS selector name |
| 247 |
|
*/ |
| 248 |
|
public function getDrupalSelector($name) { |
| 249 |
|
$text = $this->getDrupalParameter('selectors'); |
| 250 |
|
if (!isset($text[$name])) { |
| 251 |
|
throw new \Exception(sprintf('No such selector configured: %s', $name)); |
| 252 |
|
} |
| 253 |
|
return $text[$name]; |
| 254 |
|
} |
| 255 |
|
|
| 256 |
|
/** |
| 257 |
|
* Internal callback to check for a specific message in a given context. |
src/Drupal/DrupalExtension/Context/RawDrupalContext.php 1 location
|
@@ 140-146 (lines=7) @@
|
| 137 |
|
* @throws \Exception |
| 138 |
|
* @return |
| 139 |
|
*/ |
| 140 |
|
public function getDrupalText($name) { |
| 141 |
|
$text = $this->getDrupalParameter('text'); |
| 142 |
|
if (!isset($text[$name])) { |
| 143 |
|
throw new \Exception(sprintf('No such Drupal string: %s', $name)); |
| 144 |
|
} |
| 145 |
|
return $text[$name]; |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
/** |
| 149 |
|
* Get active Drupal Driver. |