TestingProfileHooks.php
Namespace
Drupal\FunctionalTests\InstallerFile
-
core/
tests/ Drupal/ FunctionalTests/ Installer/ TestingProfileHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\FunctionalTests\Installer;
use Drupal\Tests\BrowserTestBase;
/**
* Tests installing the Testing profile with update notifications on.
*
* @group Installer
*/
class TestingProfileHooks extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected $profile = 'testing_hooks';
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Test hooks are picked up.
*/
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']));
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
TestingProfileHooks | Tests installing the Testing profile with update notifications on. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.