@@ 45-60 (lines=16) @@ | ||
42 | /** |
|
43 | * {@inheritdoc} |
|
44 | */ |
|
45 | protected function setUp() { |
|
46 | parent::setUp(); |
|
47 | $this->testBundle = $this->container->get('entity_type.manager')->getStorage('media_bundle')->load('gallery'); |
|
48 | ||
49 | $adminUser = $this->drupalCreateUser([ |
|
50 | 'view media', |
|
51 | 'create media', |
|
52 | 'update media', |
|
53 | 'update any media', |
|
54 | 'delete media', |
|
55 | 'delete any media', |
|
56 | 'access media overview', |
|
57 | 'access gallery_media_library entity browser pages', |
|
58 | ]); |
|
59 | $this->drupalLogin($adminUser); |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Tests gallery media bundle creation from config files. |
@@ 46-60 (lines=15) @@ | ||
43 | /** |
|
44 | * {@inheritdoc} |
|
45 | */ |
|
46 | protected function setUp() { |
|
47 | parent::setUp(); |
|
48 | $this->testBundle = $this->container->get('entity.manager')->getStorage('media_bundle')->load('image'); |
|
49 | ||
50 | $adminUser = $this->drupalCreateUser([ |
|
51 | 'view media', |
|
52 | 'create media', |
|
53 | 'update media', |
|
54 | 'update any media', |
|
55 | 'delete media', |
|
56 | 'delete any media', |
|
57 | 'access media overview', |
|
58 | ]); |
|
59 | $this->drupalLogin($adminUser); |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Tests image media bundle creation from config files. |
@@ 46-60 (lines=15) @@ | ||
43 | /** |
|
44 | * {@inheritdoc} |
|
45 | */ |
|
46 | protected function setUp() { |
|
47 | parent::setUp(); |
|
48 | $this->testBundle = $this->container->get('entity.manager')->getStorage('media_bundle')->load('instagram'); |
|
49 | ||
50 | $adminUser = $this->drupalCreateUser([ |
|
51 | 'view media', |
|
52 | 'create media', |
|
53 | 'update media', |
|
54 | 'update any media', |
|
55 | 'delete media', |
|
56 | 'delete any media', |
|
57 | 'access media overview', |
|
58 | ]); |
|
59 | $this->drupalLogin($adminUser); |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Tests instagram media bundle creation from config files. |
@@ 46-60 (lines=15) @@ | ||
43 | /** |
|
44 | * {@inheritdoc} |
|
45 | */ |
|
46 | protected function setUp() { |
|
47 | parent::setUp(); |
|
48 | $this->testBundle = $this->container->get('entity.manager')->getStorage('media_bundle')->load('video'); |
|
49 | ||
50 | $adminUser = $this->drupalCreateUser([ |
|
51 | 'view media', |
|
52 | 'create media', |
|
53 | 'update media', |
|
54 | 'update any media', |
|
55 | 'delete media', |
|
56 | 'delete any media', |
|
57 | 'access media overview', |
|
58 | ]); |
|
59 | $this->drupalLogin($adminUser); |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Tests video media bundle creation from config files. |