You are here

public function KernelTestBaseTest::testDrupalGetProfile in SimpleTest 8.3

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

src/Tests/KernelTestBaseTest.php, line 332

Class

KernelTestBaseTest
Tests KernelTestBase functionality.

Namespace

Drupal\simpletest\Tests

Code

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