public function PreviewLinkStorageTest::setUp in Preview Link 2.x
Same name and namespace in other branches
- 8 tests/src/Kernel/PreviewLinkStorageTest.php \Drupal\Tests\preview_link\Kernel\PreviewLinkStorageTest::setUp()
- 2.0.x tests/src/Kernel/PreviewLinkStorageTest.php \Drupal\Tests\preview_link\Kernel\PreviewLinkStorageTest::setUp()
Overrides PreviewLinkBase::setUp
File
- tests/
src/ Kernel/ PreviewLinkStorageTest.php, line 44
Class
- PreviewLinkStorageTest
- Preview link session test.
Namespace
Drupal\Tests\preview_link\KernelCode
public function setUp() {
parent::setUp();
$this
->installConfig([
'node',
'filter',
]);
$this
->createContentType([
'type' => 'page',
]);
$this->node = $this
->createNode();
$this->storage = $this->container
->get('entity_type.manager')
->getStorage('preview_link');
}