function TestDeprecatedTestHooks::testHookTestGroupFinished

@expectedDeprecation The deprecated hook hook_test_group_finished() is implemented in these functions: simpletest_deprecation_test_test_group_finished(). Convert your test to a PHPUnit-based one and implement test listeners. See https://www.drupal.org/node/2934242

File

core/modules/simpletest/tests/src/Kernel/TestDeprecatedTestHooks.php, line 29

Class

TestDeprecatedTestHooks
Test the deprecation messages for Simpletest test hooks.

Namespace

Drupal\Tests\simpletest\Kernel

Code

public function testHookTestGroupFinished() {
    // @todo Mock the messenger service and add expectations when
    // \Drupal::messenger() actually uses the service.
    // @see https://www.drupal.org/node/2928994
    $this->assertNull(_simpletest_batch_finished(TRUE, [], [], 10));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.