You are here

public function KernelTestBaseTest::testDrupalGetProfile in Drupal 8

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