public function YouTubeTest::setUp in YouTube Field 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ YouTubeTest.php, line 38
Class
- YouTubeTest
- Tests youtube field widgets and formatters.
Namespace
Drupal\Tests\youtube\FunctionalCode
public function setUp() {
parent::setUp();
// Create Basic page and Article node types.
if ($this->profile != 'standard') {
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
}
$this->admin_user = $this
->drupalCreateUser([
'access content',
'access administration pages',
'administer site configuration',
'administer content types',
'administer node fields',
'administer nodes',
'create article content',
'edit any article content',
'delete any article content',
'administer image styles',
]);
$this
->drupalLogin($this->rootUser);
}