You are here

public function PotxTest::testDrupal8InfoYml in Translation template extractor 8

Test parsing of Drupal 8 .info.yml files.

File

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

Class

PotxTest
Ensure that the translation template extractor functions properly.

Namespace

Drupal\Tests\potx\Kernel

Code

public function testDrupal8InfoYml() {
  $filename = $this->tests_root . '/potx_test_8.info.yml';
  $this
    ->parseFile($filename, POTX_API_8);

  // Look for name, description and package name extracted.
  $this
    ->assertMsgId('Translation template extractor tester');
  $this
    ->assertMsgId('Test description');
  $this
    ->assertMsgId('Test package');
  $this
    ->assertMsgID('Test region');
  $this
    ->assertMsgID('Another region');
  $this
    ->assertPotxErrors([]);
}