public function NgLightboxTest::setUp in NG Lightbox 8
Same name and namespace in other branches
- 2.x src/Tests/NgLightboxTest.php \Drupal\ng_lightbox\Tests\NgLightboxTest::setUp()
Overrides KernelTestBase::setUp
File
- src/
Tests/ NgLightboxTest.php, line 30 - NG Lightbox tests.
Class
- NgLightboxTest
- Test basic functionality of the lightbox.
Namespace
Drupal\ng_lightbox\TestsCode
public function setUp() {
parent::setUp();
$this
->installSchema('system', [
'router',
'url_alias',
]);
\Drupal::service('router.builder')
->rebuild();
$this
->installEntitySchema('node');
$this
->installEntitySchema('user');
$this
->installSchema('node', [
'node_access',
]);
$this
->installConfig([
'ng_lightbox',
]);
// Create the node type.
NodeType::create([
'type' => 'page',
])
->save();
}