Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 May 2025 at 16:11 UTC
Updated:
12 Jun 2025 at 07:59 UTC
Jump to comment: Most recent
\Drupal\Tests\BrowserTestBase contains this method:
/**
* Helper function to get the options of select field.
*
* @param \Behat\Mink\Element\NodeElement|string $select
* Name, ID, or Label of select field to assert.
* @param \Behat\Mink\Element\Element $container
* (optional) Container element to check against. Defaults to current page.
*
* @return array
* Associative array of option keys and values.
*/
protected function getOptions($select, ?Element $container = NULL) {
This function is never called in core, and doesn't seem like something we should be providing in the base class.
Deprecate it for removal in Drupal 12.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
annmarysruthy commentedComment #4
annmarysruthy commentedComment #5
smustgrave commentedThis probably could of been a novice task for a new user.
Comment #6
longwaveLooks good to me.
Comment #9
catchCommitted/pushed to 11.x and cherry-picked to 11.2.x, thanks!