core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php | 5 ++--- core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php b/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php index 8ed2374c97..a144d6a11f 100644 --- a/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php +++ b/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php @@ -364,7 +364,7 @@ protected function initConfig(ContainerInterface $container) { if ($this->profile === 'testing') { if (empty($this->theme)) { - @trigger_error('Drupal\Tests\BrowserTestBase::$theme is required in drupal:9.0.0 when using the default "testing" install profile. See https://www.drupal.org/node/2352949, which includes recommendations on which theme to use', E_USER_DEPRECATED); + @trigger_error('Drupal\Tests\BrowserTestBase::$theme is required in drupal:9.0.0 when using the default "testing" install profile. See https://www.drupal.org/node/2352949, which includes recommendations on which theme to use.', E_USER_DEPRECATED); $this->theme = 'classy'; } $config->getEditable('system.theme') @@ -433,12 +433,11 @@ protected function installThemeFromClassProperty(ContainerInterface $container) try { $container->get('theme_installer')->install([$this->theme], TRUE); } + // The exception message has all the details. catch (UnknownExtensionException $e) { - // The exception message has all the details. $this->fail($e->getMessage()); } catch (ExtensionNameLengthException $e) { - // The exception message has all the details. $this->fail($e->getMessage()); } } diff --git a/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php b/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php index d4b7868675..08ee2f5898 100644 --- a/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php +++ b/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php @@ -141,7 +141,7 @@ public static function getSkippedDeprecations() { // symfony/browser-kit to 4.3+. 'The "Symfony\Component\BrowserKit\Response::getStatus()" method is deprecated since Symfony 4.3, use getStatusCode() instead.', // @todo Remove in https://www.drupal.org/project/drupal/issues/3082655 - 'Drupal\Tests\BrowserTestBase::$theme is required in drupal:9.0.0 when using the default "testing" install profile. See https://www.drupal.org/node/2352949, which includes recommendations on which theme to use', + 'Drupal\Tests\BrowserTestBase::$theme is required in drupal:9.0.0 when using the default "testing" install profile. See https://www.drupal.org/node/2352949, which includes recommendations on which theme to use.', ]; }