From b709c5ae30c0e839019c64ec7764aa2cc3719978 Mon Sep 17 00:00:00 2001 From: catch <6915-catch@users.noreply.drupalcode.org> Date: Thu, 29 May 2025 08:52:49 +0100 Subject: [PATCH] Issue #3522969 by annmarysruthy: Deprecate BrowserTestBase::getOptions() --- core/tests/Drupal/Tests/BrowserTestBase.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php index 5647e150fa79..98aafad7df13 100644 --- a/core/tests/Drupal/Tests/BrowserTestBase.php +++ b/core/tests/Drupal/Tests/BrowserTestBase.php @@ -502,8 +502,14 @@ protected function getHttpClient() { * * @return array * Associative array of option keys and values. + * + * @deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is + * no direct replacement. + * + * @see https://www.drupal.org/node/3523039 */ protected function getOptions($select, ?Element $container = NULL) { + @trigger_error(__METHOD__ . 'is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no direct replacement. See https://www.drupal.org/node/3523039', E_DEPRECATED); if (is_string($select)) { $select = $this->assertSession()->selectExists($select, $container); } -- GitLab