You are here

public function PotxTest::testDrupal8PermissionsYml in Translation template extractor 8

Test parsing of Drupal 8 permissions files.

File

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

Class

PotxTest
Ensure that the translation template extractor functions properly.

Namespace

Drupal\Tests\potx\Kernel

Code

public function testDrupal8PermissionsYml() {
  $this
    ->parseFile($this->tests_root . '/potx_test_8.permissions.yml', POTX_API_8);
  $this
    ->assertMsgId('Title potx_test_8_a');
  $this
    ->assertMsgId('Description: potx_test_8_a');
  $this
    ->assertMsgId('Title potx_test_8_b');
  $this
    ->assertNoMsgId('some_callback');
  $this
    ->assertPotxErrors([]);
}