protected function AnimatedGifFunctionalTestBase::setUp in Animated GIF 8
Overrides BrowserTestBase::setUp
1 call to AnimatedGifFunctionalTestBase::setUp()
- AnimatedGifFieldTest::setUp in tests/
src/ Functional/ AnimatedGifFieldTest.php
1 method overrides AnimatedGifFunctionalTestBase::setUp()
- AnimatedGifFieldTest::setUp in tests/
src/ Functional/ AnimatedGifFieldTest.php
File
- tests/
src/ Functional/ AnimatedGifFunctionalTestBase.php, line 65
Class
- AnimatedGifFunctionalTestBase
- Base class for Animated GIF functional tests.
Namespace
Drupal\Tests\animated_gif\FunctionalCode
protected function setUp() : void {
parent::setUp();
/** @var \Drupal\Core\Entity\EntityDisplayRepositoryInterface $displayRepository */
$this->displayRepository = $this->container
->get('entity_display.repository');
$this->fileSystem = $this->container
->get('file_system');
$this->entityTypeManager = $this->container
->get('entity_type.manager');
$this->adminUser = $this
->drupalCreateUser([
'access content',
'access administration pages',
'administer content types',
'administer node fields',
'administer node display',
'administer nodes',
'bypass node access',
]);
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
}