function FileFieldTestBase::setUp
Same name in other branches
- 9 core/modules/file/tests/src/Functional/FileFieldTestBase.php \Drupal\Tests\file\Functional\FileFieldTestBase::setUp()
- 8.9.x core/modules/file/src/Tests/FileFieldTestBase.php \Drupal\file\Tests\FileFieldTestBase::setUp()
- 8.9.x core/modules/file/tests/src/Functional/FileFieldTestBase.php \Drupal\Tests\file\Functional\FileFieldTestBase::setUp()
- 11.x core/modules/file/tests/src/Functional/FileFieldTestBase.php \Drupal\Tests\file\Functional\FileFieldTestBase::setUp()
Overrides BrowserTestBase::setUp
6 methods override FileFieldTestBase::setUp()
- FileFieldAnonymousSubmissionTest::setUp in core/
modules/ file/ tests/ src/ Functional/ FileFieldAnonymousSubmissionTest.php - FileFieldWidgetTest::setUp in core/
modules/ file/ tests/ src/ Functional/ FileFieldWidgetTest.php - FileListingTest::setUp in core/
modules/ file/ tests/ src/ Functional/ FileListingTest.php - FileOnTranslatedEntityTest::setUp in core/
modules/ file/ tests/ src/ Functional/ FileOnTranslatedEntityTest.php - FilePrivateTest::setUp in core/
modules/ file/ tests/ src/ Functional/ FilePrivateTest.php
File
-
core/
modules/ file/ tests/ src/ Functional/ FileFieldTestBase.php, line 40
Class
- FileFieldTestBase
- Provides methods specifically for testing File module's field handling.
Namespace
Drupal\Tests\file\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this->drupalCreateUser([
'access content',
'access administration pages',
'administer site configuration',
'administer users',
'administer permissions',
'administer content types',
'administer node fields',
'administer node display',
'administer nodes',
'bypass node access',
]);
$this->drupalLogin($this->adminUser);
$this->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.