function DeprecatedCleanupTest::register

Overrides KernelTestBase::register

File

core/modules/simpletest/tests/src/Kernel/DeprecatedCleanupTest.php, line 23

Class

DeprecatedCleanupTest
Verify deprecation errors for the cleanup functions.

Namespace

Drupal\Tests\simpletest\Kernel

Code

public function register(ContainerBuilder $container) {
    parent::register($container);
    $cleaner_definition = new Definition(StubEnvironmentCleanerService::class);
    $container->setDefinition('environment_cleaner', $cleaner_definition);
}

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