diff --git a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php index 2528d46..dc72e0d 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php @@ -1026,7 +1026,7 @@ protected function tearDown() { // which means they may need to access its filesystem and database. drupal_static_reset(); - if (($container = $this->container->get('state')->get()) { + if ($container = $this->container->get('state')->get()) { $captured_emails = \Drupal::state()->get('system.test_email_collector') ?: array(); $emailCount = count($captured_emails); if ($emailCount) {