You are here

protected function MetatagAdminTest::setUp in Metatag 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/MetatagAdminTest.php, line 56

Class

MetatagAdminTest
Tests the Metatag administration.

Namespace

Drupal\Tests\metatag\Functional

Code

protected function setUp() {
  parent::setUp();

  // Use the test page as the front page.
  $this
    ->config('system.site')
    ->set('page.front', '/test-page')
    ->save();

  // Create Basic page and Article node types.
  if ($this->profile != 'standard') {
    $this
      ->drupalCreateContentType([
      'type' => 'page',
      'name' => 'Basic page',
      'display_submitted' => FALSE,
    ]);
    $this
      ->drupalCreateContentType([
      'type' => 'article',
      'name' => 'Article',
    ]);
  }
}