You are here

protected function HijriNodeDisplayTest::setUp in Hijri 1.0.x

Same name and namespace in other branches
  1. 3.0.x tests/src/Functional/HijriNodeDisplayTest.php \Drupal\Tests\hijri\Functional\HijriNodeDisplayTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/Functional/HijriNodeDisplayTest.php, line 30

Class

HijriNodeDisplayTest

Namespace

Drupal\Tests\hijri\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->hijri_formatter = \Drupal::service('hijri.formatter');
  $this->assert = $this
    ->assertSession();
  $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => t('Article'),
  ]);

  // Create comment field on page.
  $this
    ->addDefaultCommentField('node', 'article');
}