protected function HijriNodeDisplayTest::setUp in Hijri 3.0.x
Same name and namespace in other branches
- 1.0.x tests/Functional/HijriNodeDisplayTest.php \Drupal\Tests\hijri\Functional\HijriNodeDisplayTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ HijriNodeDisplayTest.php, line 32
Class
- HijriNodeDisplayTest
- Browser test base class for Hijri functional tests.
Namespace
Drupal\Tests\hijri\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->hijri_formatter = \Drupal::service('hijri.formatter');
$this->assert = $this
->assertSession();
$this->date_formatter = \Drupal::service('date.formatter');
$this
->drupalCreateContentType([
'type' => 'article',
'name' => t('Article'),
]);
// Create comment field on page.
$this
->addDefaultCommentField('node', 'article');
}