You are here

public function PotxTestCase::testDrupal8InfoYml in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 tests/potx.test \PotxTestCase::testDrupal8InfoYml()
  2. 7.2 tests/potx.test \PotxTestCase::testDrupal8InfoYml()

Test parsing of Drupal 8 .info.yml files.

File

tests/potx.test, line 308
Tests to ensure that the template extractor works as intended.

Class

PotxTestCase
@file Tests to ensure that the template extractor works as intended.

Code

public function testDrupal8InfoYml() {
  $filename = __DIR__ . '/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');
}