Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit a29b0833 authored by drishu's avatar drishu
Browse files

OEL-1913: Use service instead of container in functional test.

parent a4350b6c
No related branches found
No related tags found
1 merge request!179OEL-1913: Theme oe_carousel paragraph.
......@@ -308,8 +308,8 @@ class ParagraphsTest extends BrowserTestBase {
$file_2->setPermanent();
$file_2->save();
$media_storage = $this->container->get('entity_type.manager')
->getStorage('media');
$media_storage = \Drupal::service('entity_type.manager')->getStorage('media');
$media = $media_storage->create([
'bundle' => 'image',
'name' => 'First image',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment