You are here

public function KernelTestBaseTest::testDrupalGetProfile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/Tests/KernelTestBaseTest.php \Drupal\simpletest\Tests\KernelTestBaseTest::testDrupalGetProfile()

Tests that drupal_get_profile() 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
Contains \Drupal\simpletest\Tests\KernelTestBaseTest.

Class

KernelTestBaseTest
Tests KernelTestBase functionality.

Namespace

Drupal\simpletest\Tests

Code

public function testDrupalGetProfile() {
  $this
    ->assertNull(drupal_get_profile());
}