function TestingProfileHooks::testHookPickup

Test hooks are picked up.

File

core/tests/Drupal/FunctionalTests/Installer/TestingProfileHooks.php, line 29

Class

TestingProfileHooks
Tests installing the Testing profile with update notifications on.

Namespace

Drupal\FunctionalTests\Installer

Code

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.