示例#1
0
 /**
  * {@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}
  */
 public function setup()
 {
     parent::setup();
     $this->installConfig(['media_entity']);
     $this->mediaVideoPlugin = $this->container->get('plugin.manager.media_entity.type')->createInstance('video_embed_field', []);
     $bundle = MediaBundle::create(['id' => 'video', 'type' => 'video_embed_field']);
     $bundle->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();
 }