This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
40
$type_configuration = [
41
'source_field' => 'field_media_video_embed_field'
42
];
43
44
$this->assertTrue((bool) $this->testBundle, 'The media bundle from default configuration has been created in the database.');
$this->assertEqual($this->testBundle->get('description'), 'Use Video for embedding videos hosted by YouTube, Vimeo, or some other provider.', 'Correct description detected.');
47
$this->assertEqual($this->testBundle->get('type'), 'video_embed_field', 'Correct plugin ID detected.');
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.