diff --git a/core/modules/filter/src/Tests/FilterFormTest.php b/core/modules/filter/src/Tests/FilterFormTest.php index 4bee072..c40b883 100644 --- a/core/modules/filter/src/Tests/FilterFormTest.php +++ b/core/modules/filter/src/Tests/FilterFormTest.php @@ -191,7 +191,7 @@ protected function assertNoSelect($id) { /** * Asserts that a select element has the correct options. * - * @param string $name + * @param string $drupal_selector * The HTML name of the select element. * @param array $expected_options * An array of option values. @@ -204,8 +204,8 @@ protected function assertNoSelect($id) { protected function assertOptions($drupal_selector, array $expected_options, $selected) { $select = $this->xpath('//select[@data-drupal-selector=:data_drupal_selector]', [':data_drupal_selector' => $drupal_selector]); $select = reset($select); - $passed = $this->assertTrue($select instanceof \SimpleXMLElement, SafeMarkup::format('Field @name exists.', array( - '@name' => $drupal_selector, + $passed = $this->assertTrue($select instanceof \SimpleXMLElement, SafeMarkup::format('Field @data-drupal-selector exists.', array( + '@data-drupal-selector' => $drupal_selector, ))); $found_options = $this->getAllOptions($select); @@ -244,7 +244,7 @@ protected function assertOptions($drupal_selector, array $expected_options, $sel /** * Asserts that there is a select element with the given ID that is required. * - * @param string $id + * @param string $drupal_selector * The HTML ID of the select element. * @param array $options * An array of option values that are contained in the select element