You are here

function ConfigImporterTest::testNoImport in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/src/Tests/ConfigImporterTest.php \Drupal\config\Tests\ConfigImporterTest::testNoImport()

Tests omission of module APIs for bare configuration operations.

File

core/modules/config/src/Tests/ConfigImporterTest.php, line 71
Contains \Drupal\config\Tests\ConfigImporterTest.

Class

ConfigImporterTest
Tests importing configuration from files into active configuration.

Namespace

Drupal\config\Tests

Code

function testNoImport() {
  $dynamic_name = 'config_test.dynamic.dotted.default';

  // Verify the default configuration values exist.
  $config = $this
    ->config($dynamic_name);
  $this
    ->assertIdentical($config
    ->get('id'), 'dotted.default');

  // Verify that a bare $this->config() does not involve module APIs.
  $this
    ->assertFalse(isset($GLOBALS['hook_config_test']));
}