You are here

public function ModuleHandlerTest::testIsLoaded in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php \Drupal\Tests\Core\Extension\ModuleHandlerTest::testIsLoaded()

Test isLoaded accessor.

@covers ::isLoaded

File

core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php, line 126
Contains \Drupal\Tests\Core\Extension\ModuleHandlerTest.

Class

ModuleHandlerTest
@coversDefaultClass \Drupal\Core\Extension\ModuleHandler @group Extension

Namespace

Drupal\Tests\Core\Extension

Code

public function testIsLoaded() {
  $this
    ->assertFalse($this->moduleHandler
    ->isLoaded());
  $this->moduleHandler
    ->loadAll();
  $this
    ->assertTrue($this->moduleHandler
    ->isLoaded());
}