You are here

protected function SettingsFormTest::setUp in Simple Facebook Pixel 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/SettingsFormTest.php, line 41

Class

SettingsFormTest
Tests the settings form.

Namespace

Drupal\Tests\simple_facebook_pixel\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Basic page',
  ]);
  $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);
  Vocabulary::create([
    'vid' => 'tags',
  ])
    ->save();
  $this->user = $account = $this
    ->drupalCreateUser([
    'administer modules',
    'administer simple facebook pixel',
  ]);
  $this
    ->drupalLogin($account);
}