diff --git a/core/modules/simpletest/simpletest.api.php b/core/modules/simpletest/simpletest.api.php index 9b9014e5ad..5e75f66ddd 100644 --- a/core/modules/simpletest/simpletest.api.php +++ b/core/modules/simpletest/simpletest.api.php @@ -40,8 +40,8 @@ function hook_simpletest_alter(&$groups) { * This hook is only invoked by the Simpletest UI form runner. It will not be * invoked by run-tests.sh or the phpunit tool. * - * @deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Convert - * your test to a PHPUnit-based one and implement test listeners. + * @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Convert your + * test to a PHPUnit-based one and implement test listeners. * * @see https://www.drupal.org/node/2934242 */ @@ -56,8 +56,8 @@ function hook_test_group_started() { * This hook is only invoked by the Simpletest UI form runner. It will not be * invoked by run-tests.sh or the phpunit tool. * - * @deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Convert - * your test to a PHPUnit-based one and implement test listeners. + * @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Convert your + * test to a PHPUnit-based one and implement test listeners. * * @see https://www.drupal.org/node/2934242 */ @@ -78,8 +78,8 @@ function hook_test_group_finished() { * * @see \Drupal\simpletest\WebTestBase::results() * - * @deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Convert - * your test to a PHPUnit-based one and implement test listeners. + * @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Convert your + * test to a PHPUnit-based one and implement test listeners. * * @see https://www.drupal.org/node/2934242 */ diff --git a/core/modules/simpletest/tests/src/Kernel/TestDeprecatedTestHooks.php b/core/modules/simpletest/tests/src/Kernel/TestDeprecatedTestHooks.php index 28f129d244..c578de6991 100644 --- a/core/modules/simpletest/tests/src/Kernel/TestDeprecatedTestHooks.php +++ b/core/modules/simpletest/tests/src/Kernel/TestDeprecatedTestHooks.php @@ -83,7 +83,7 @@ public function testHookTestFinished() { ->disableOriginalConstructor() ->setMethods(['registerTestNamespaces']) ->getMock(); - $discovery->expects($this->any()) + $discovery->expects($this->once()) ->method('registerTestNamespaces') ->willReturn([]);