function GetFilenameTest::register

Overrides KernelTestBase::register

File

core/tests/Drupal/KernelTests/Core/Bootstrap/GetFilenameTest.php, line 23

Class

GetFilenameTest
Tests that <a href="/api/drupal/core%21includes%21bootstrap.inc/function/drupal_get_filename/8.9.x" title="Returns and optionally sets the filename for a system resource." class="local">drupal_get_filename</a>() works correctly.

Namespace

Drupal\KernelTests\Core\Bootstrap

Code

public function register(ContainerBuilder $container) {
    parent::register($container);
    // Use the testing install profile.
    $container->setParameter('install_profile', 'testing');
}

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