Loading core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php +1 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ use Behat\Mink\Element\NodeElement; use Behat\Mink\Exception\ExpectationException; use Behat\Mink\Selector\Xpath\Escaper; use Drupal\Component\Render\FormattableMarkup; use Drupal\Component\Utility\Xss; use Drupal\KernelTests\AssertLegacyTrait as BaseAssertLegacyTrait; Loading Loading @@ -759,7 +758,7 @@ protected function assertFieldsByValue($fields, $value = NULL, $message = '') { // Input element with correct value. $found = TRUE; } elseif ($field->find('xpath', '//option[@value = ' . (new Escaper())->escapeLiteral($value) . ' and @selected = "selected"]')) { elseif ($field->find('xpath', '//option[@value = ' . $value . ' and @selected = "selected"]')) { // Select element with an option. $found = TRUE; } Loading Loading
core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php +1 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ use Behat\Mink\Element\NodeElement; use Behat\Mink\Exception\ExpectationException; use Behat\Mink\Selector\Xpath\Escaper; use Drupal\Component\Render\FormattableMarkup; use Drupal\Component\Utility\Xss; use Drupal\KernelTests\AssertLegacyTrait as BaseAssertLegacyTrait; Loading Loading @@ -759,7 +758,7 @@ protected function assertFieldsByValue($fields, $value = NULL, $message = '') { // Input element with correct value. $found = TRUE; } elseif ($field->find('xpath', '//option[@value = ' . (new Escaper())->escapeLiteral($value) . ' and @selected = "selected"]')) { elseif ($field->find('xpath', '//option[@value = ' . $value . ' and @selected = "selected"]')) { // Select element with an option. $found = TRUE; } Loading