diff -u b/core/modules/media/tests/src/FunctionalJavascript/MediaHandlerTestBase.php b/core/modules/media/tests/src/FunctionalJavascript/MediaHandlerTestBase.php --- b/core/modules/media/tests/src/FunctionalJavascript/MediaHandlerTestBase.php +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaHandlerTestBase.php @@ -102,7 +102,7 @@ // Make sure the provided fields are visible on the form. if (!empty($provided_fields)) { foreach ($provided_fields as $provided_field) { - $assert_session->selectExists("field_mapping[$provided_field]"); + $assert_session->selectExists("field_map[$provided_field]"); } } @@ -122,25 +122,2 @@ - /** - * Helper to assert presence/absence of select options. - * - * @param string $select - * One of id|name|label|value for the select field. - * @param array $expected_options - * An indexed array of expected option names. - * @param array $non_expected_options - * An indexed array of non-expected option names. - * - * @see \Drupal\Tests\WebAssert::optionExists() - * @see \Drupal\Tests\WebAssert::optionNotExists() - */ - protected function assertSelectOptions($select, $expected_options = [], $non_expected_options = []) { - $assert_session = $this->assertSession(); - foreach ($expected_options as $expected_option) { - $assert_session->optionExists($select, $expected_option); - } - foreach ($non_expected_options as $non_expected_option) { - $assert_session->optionNotExists($select, $non_expected_option); - } - } - }