public function TestDeprecatedTestHooks::testHookTestGroupFinished in Drupal 8
@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\KernelCode
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));
}