You are here

public function ShortcodeTest::setUp in Shortcode 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/ShortcodeTest.php \Drupal\Tests\shortcode\Functional\ShortcodeTest::setUp()

Perform any initial set up tasks that run before every test method.

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ShortcodeTest.php, line 44

Class

ShortcodeTest
Tests the Drupal 8 shortcode module functionality.

Namespace

Drupal\Tests\shortcode\Functional

Code

public function setUp() {
  parent::setUp();
  $this->shortcodeService = $this->container
    ->get('shortcode');
  $this->siteUrl = Url::fromRoute('<front>', [], [
    "absolute" => TRUE,
  ])
    ->toString();
}