function KernelTestBaseTest::testDrupalGetProfile

Tests that \Drupal::installProfile() returns NULL.

As the currently active installation profile is used when installing configuration, for example, this is essential to ensure test isolation.

File

core/modules/simpletest/src/Tests/KernelTestBaseTest.php, line 332

Class

KernelTestBaseTest
Tests KernelTestBase functionality.

Namespace

Drupal\simpletest\Tests

Code

public function testDrupalGetProfile() {
    $this->assertNull(\Drupal::installProfile());
}

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