You are here

protected function TestFeaturesManager::drupalGetProfile in Features 8.3

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/FeaturesManagerTest.php \Drupal\Tests\features\Unit\TestFeaturesManager::drupalGetProfile()

Gets the name of the currently active installation profile.

Return value

string|null The name of the installation profile or NULL if no installation profile is currently active. This is the case for example during the first steps of the installer or during unit tests.

Overrides FeaturesManager::drupalGetProfile

File

tests/src/Unit/FeaturesManagerTest.php, line 1027

Class

TestFeaturesManager

Namespace

Drupal\Tests\features\Unit

Code

protected function drupalGetProfile() {
  return FeaturesManagerTest::PROFILE_NAME;
}