Loading core/tests/Drupal/Tests/WebAssert.php +2 −2 Changes for core/tests/Drupal/Tests/WebAssert.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -225,7 +225,7 @@ public function optionExists($select, $option, TraversableElement $container = N throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $select); } $option_field = $select_field->find('named', ['option', $option]); $option_field = $select_field->find('named_exact', ['option', $option]); if ($option_field === NULL) { throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $option); Loading Loading @@ -259,7 +259,7 @@ public function optionNotExists($select, $option, TraversableElement $container throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $select); } $option_field = $select_field->find('named', ['option', $option]); $option_field = $select_field->find('named_exact', ['option', $option]); $this->assert($option_field === NULL, sprintf('An option "%s" exists in select "%s", but it should not.', $option, $select)); } Loading Loading
core/tests/Drupal/Tests/WebAssert.php +2 −2 Changes for core/tests/Drupal/Tests/WebAssert.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -225,7 +225,7 @@ public function optionExists($select, $option, TraversableElement $container = N throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $select); } $option_field = $select_field->find('named', ['option', $option]); $option_field = $select_field->find('named_exact', ['option', $option]); if ($option_field === NULL) { throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $option); Loading Loading @@ -259,7 +259,7 @@ public function optionNotExists($select, $option, TraversableElement $container throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $select); } $option_field = $select_field->find('named', ['option', $option]); $option_field = $select_field->find('named_exact', ['option', $option]); $this->assert($option_field === NULL, sprintf('An option "%s" exists in select "%s", but it should not.', $option, $select)); } Loading