/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->filter = FilterFormat::create(['format' => 'test_format', 'name' => $this->randomMachineName()]); $this->filter->setFilterConfig('video_embed_wysiwyg', ['status' => 1]); $this->filter->save(); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->style = ImageStyle::create(['name' => 'style_foo', 'label' => $this->randomString()]); $this->style->save(); $this->replacementStyle = ImageStyle::create(['name' => 'style_bar', 'label' => $this->randomString()]); $this->replacementStyle->save(); $this->entityTypeManager = \Drupal::entityTypeManager(); }