You are here

public function PotxTest::setUp in Translation template extractor 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/PotxTest.php, line 24

Class

PotxTest
Ensure that the translation template extractor functions properly.

Namespace

Drupal\Tests\potx\Kernel

Code

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

  // Add potx.inc which we test for its functionality.
  include_once __DIR__ . '/../../../potx.inc';
  include_once __DIR__ . '/../../../potx.local.inc';
  potx_local_init();

  // Store empty error message for reuse in multiple cases.
  $this->empty_error = t('Empty string attempted to be localized. Please do not leave test code for localization in your source.');
  $this->tests_root = __DIR__ . '/../../../tests';
}