You are here

public function TestDeprecatedTestHooks::testHookTestGroupFinished in SimpleTest 8.3

@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

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));
}