comparison core/tests/Drupal/Tests/WebAssert.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children c2387f117808
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
449 * The matching element. 449 * The matching element.
450 * 450 *
451 * @throws \Behat\Mink\Exception\ElementNotFoundException 451 * @throws \Behat\Mink\Exception\ElementNotFoundException
452 * @throws \Behat\Mink\Exception\ExpectationException 452 * @throws \Behat\Mink\Exception\ExpectationException
453 */ 453 */
454 public function fieldDisabled($field, TraversableElement $container = NULL) { 454 public function fieldDisabled($field, TraversableElement $container = NULL) {
455 $container = $container ?: $this->session->getPage(); 455 $container = $container ?: $this->session->getPage();
456 $node = $container->findField($field); 456 $node = $container->findField($field);
457 457
458 if ($node === NULL) { 458 if ($node === NULL) {
459 throw new ElementNotFoundException($this->session->getDriver(), 'field', 'id|name|label|value', $field); 459 throw new ElementNotFoundException($this->session->getDriver(), 'field', 'id|name|label|value', $field);