protected function DrupalMediaEmbedCollectorTest::setUp in Dependency Calculation 8
Overrides MediaEmbedFilterTestBase::setUp
File
- tests/
src/ Kernel/ EventSubscriber/ DependencyCollector/ DrupalMediaEmbedCollectorTest.php, line 57
Class
- DrupalMediaEmbedCollectorTest
- Class DrupalMediaEmbedCollectorTest.
Namespace
Drupal\Tests\depcalc\Kernel\EventSubscriber\DependencyCollectorCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('path_alias');
$this
->installEntitySchema('node');
$this
->installConfig('node');
$this
->installSchema('node', 'node_access');
$this
->createContentType([
'type' => 'page',
]);
Media::create([
'uuid' => static::EMBEDDED_ENTITY_UUID_2,
'bundle' => 'image',
'name' => 'Another media',
])
->save();
$this->calculator = \Drupal::service('entity.dependency.calculator');
}