diff -u b/core/modules/simpletest/src/RandomGeneratorTrait.php b/core/modules/simpletest/src/RandomGeneratorTrait.php --- b/core/modules/simpletest/src/RandomGeneratorTrait.php +++ b/core/modules/simpletest/src/RandomGeneratorTrait.php @@ -7,7 +7,7 @@ /** * Provides random generator utility methods. * - * @deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. + * @deprecated in Drupal 8.1.1, will be removed before Drupal 9.0.0. * The trait was moved to another namespace. * * @see \Drupal\Tests diff -u b/core/modules/simpletest/src/SessionTestTrait.php b/core/modules/simpletest/src/SessionTestTrait.php --- b/core/modules/simpletest/src/SessionTestTrait.php +++ b/core/modules/simpletest/src/SessionTestTrait.php @@ -7,7 +7,7 @@ /** * Provides methods to generate and get session name in tests. * - * @deprecated in Drupal 8.2.0 will be removed before 9.0.0. + * @deprecated in Drupal 8.1.1 will be removed before 9.0.0. * This was moved to another namespace. * * @see \Drupal\Tests diff -u b/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php --- b/core/modules/simpletest/src/TestBase.php +++ b/core/modules/simpletest/src/TestBase.php @@ -2,7 +2,6 @@ namespace Drupal\simpletest; -use Behat\Mink\Session; use Drupal\Component\Render\MarkupInterface; use Drupal\Component\Utility\Crypt; use Drupal\Component\Utility\SafeMarkup; diff -u b/core/modules/simpletest/src/WebAssert.php b/core/modules/simpletest/src/WebAssert.php --- b/core/modules/simpletest/src/WebAssert.php +++ b/core/modules/simpletest/src/WebAssert.php @@ -7,7 +7,7 @@ /** * Defines a class with methods for asserting presence of elements during tests. * - * @deprecated in Drupal 8.2.0 will be removed before 9.0.0. + * @deprecated in Drupal 8.1.1 will be removed before 9.0.0. * This was moved to another namespace. * * @see \Drupal\Tests diff -u b/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php --- b/core/tests/Drupal/Tests/BrowserTestBase.php +++ b/core/tests/Drupal/Tests/BrowserTestBase.php @@ -20,9 +20,6 @@ use Drupal\Core\StreamWrapper\StreamWrapperInterface; use Drupal\Core\Test\TestRunnerKernel; use Drupal\Core\Url; -use Drupal\Tests\RandomGeneratorTrait; -use Drupal\Tests\SessionTestTrait; -use Drupal\Tests\WebAssert as WebAssertClass; use Drupal\user\Entity\Role; use Drupal\user\Entity\User; use Drupal\user\UserInterface; @@ -533,7 +530,7 @@ * A new web-assert option for asserting the presence of elements with. */ public function assertSession($name = NULL) { - return new WebAssertClass($this->getSession($name)); + return new WebAssert($this->getSession($name)); } /**