protected function HijriNodeDisplayTest::setUp in Hijri 1.0.x
Same name and namespace in other branches
- 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
Namespace
Drupal\Tests\hijri\FunctionalCode
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');
}