protected function EmbeddedImagesCollectorTest::setUp in Dependency Calculation 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ EventSubscriber/ DependencyCollector/ EmbeddedImagesCollectorTest.php, line 51
Class
- EmbeddedImagesCollectorTest
- Class EmbeddedImagesCollectorTest.
Namespace
Drupal\Tests\depcalc\Kernel\EventSubscriber\DependencyCollectorCode
protected function setUp() {
parent::setUp();
$this
->installConfig('filter');
$this
->installConfig('node');
$this
->installSchema('node', 'node_access');
$this
->installSchema('file', [
'file_usage',
]);
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installEntitySchema('file');
$this
->installEntitySchema('path_alias');
$this
->createContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$this->calculator = \Drupal::service('entity.dependency.calculator');
}