protected function EntityEmbedFilterTestBase::setUp in Entity Embed 8
Overrides KernelTestBase::setUp
5 calls to EntityEmbedFilterTestBase::setUp()
- EntityEmbedFilterDisabledIntegrationsTest::setUp in tests/
src/ Kernel/ EntityEmbedFilterDisabledIntegrationsTest.php - EntityEmbedFilterLegacyTest::setUp in tests/
src/ Kernel/ EntityEmbedFilterLegacyTest.php - EntityEmbedFilterOverridesTest::setUp in tests/
src/ Kernel/ EntityEmbedFilterOverridesTest.php - EntityEmbedFilterTest::setUp in tests/
src/ Kernel/ EntityEmbedFilterTest.php - EntityEmbedFilterTranslationTest::setUp in tests/
src/ Kernel/ EntityEmbedFilterTranslationTest.php
5 methods override EntityEmbedFilterTestBase::setUp()
- EntityEmbedFilterDisabledIntegrationsTest::setUp in tests/
src/ Kernel/ EntityEmbedFilterDisabledIntegrationsTest.php - EntityEmbedFilterLegacyTest::setUp in tests/
src/ Kernel/ EntityEmbedFilterLegacyTest.php - EntityEmbedFilterOverridesTest::setUp in tests/
src/ Kernel/ EntityEmbedFilterOverridesTest.php - EntityEmbedFilterTest::setUp in tests/
src/ Kernel/ EntityEmbedFilterTest.php - EntityEmbedFilterTranslationTest::setUp in tests/
src/ Kernel/ EntityEmbedFilterTranslationTest.php
File
- tests/
src/ Kernel/ EntityEmbedFilterTestBase.php, line 62
Class
- EntityEmbedFilterTestBase
- Base class for Entity Embed filter tests.
Namespace
Drupal\Tests\entity_embed\KernelCode
protected function setUp() {
parent::setUp();
$this
->installSchema('node', 'node_access');
$this
->installSchema('system', 'sequences');
$this
->installEntitySchema('node');
$this
->installEntitySchema('user');
$this
->installConfig('filter');
$this
->installConfig('node');
// Create a user with required permissions. Ensure that we don't use user 1
// because that user is treated in special ways by access control handlers.
$admin_user = $this
->drupalCreateUser([]);
$user = $this
->drupalCreateUser([
'access content',
]);
$this->container
->set('current_user', $user);
// Create a sample node to be embedded.
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$this->embeddedEntity = $this
->drupalCreateNode([
'title' => 'Embed Test Node',
'uuid' => static::EMBEDDED_ENTITY_UUID,
]);
}