function TestingProfileHooksTest::testHookPickup
Same name and namespace in other branches
- 11.x core/tests/Drupal/FunctionalTests/Installer/TestingProfileHooksTest.php \Drupal\FunctionalTests\Installer\TestingProfileHooksTest::testHookPickup()
Test hooks are picked up.
File
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ TestingProfileHooksTest.php, line 31
Class
- TestingProfileHooksTest
- Tests installing the Testing profile with update notifications on.
Namespace
Drupal\FunctionalTests\InstallerCode
public function testHookPickup() : void {
$this->assertFalse(isset($GLOBALS['profile_procedural']));
$this->assertFalse(isset($GLOBALS['profile_oop']));
drupal_flush_all_caches();
$this->assertTrue(isset($GLOBALS['profile_procedural']));
$this->assertTrue(isset($GLOBALS['profile_oop']));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.