You are here

public function DefaultContentTest::testImport in Default Content for D8 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/DefaultContentTest.php \Drupal\Tests\default_content\Functional\DefaultContentTest::testImport()

Test importing default content.

File

tests/src/Functional/DefaultContentTest.php, line 52

Class

DefaultContentTest
Test import of default content.

Namespace

Drupal\Tests\default_content\Functional

Code

public function testImport() {

  // Enable the module and import the content.
  \Drupal::service('module_installer')
    ->install([
    'default_content_test',
  ], TRUE);
  $this
    ->rebuildContainer();
  $this
    ->doPostInstallTests();
}