diff --git a/core/modules/simpletest/src/AssertContentTrait.php b/core/modules/simpletest/src/AssertContentTrait.php index 3c678f0..d746fb5 100644 --- a/core/modules/simpletest/src/AssertContentTrait.php +++ b/core/modules/simpletest/src/AssertContentTrait.php @@ -1179,7 +1179,7 @@ protected function assertOption($drupal_selector, $option, $message = '', $group * TRUE on pass, FALSE on fail. */ protected function assertNoOption($drupal_selector, $option, $message = '', $group = 'Browser') { - $selects = $this->xpath('//select[@data-drupal-selector=:data_drupal_selector]', array(':id' => $drupal_selector)); + $selects = $this->xpath('//select[@data-drupal-selector=:data_drupal_selector]', array(':data_drupal_selector' => $drupal_selector)); $options = $this->xpath('//select[@data-drupal-selector=:data_drupal_selector]//option[@value=:option]', array(':data_drupal_selector' => $drupal_selector, ':option' => $option)); return $this->assertTrue(isset($selects[0]) && !isset($options[0]), $message ? $message : SafeMarkup::format('Option @option for field @id does not exist.', array('@option' => $option, '@id' => $drupal_selector)), $group); }