You are here

public function PotxTest::testDrupal8MenuLinksYml in Translation template extractor 8

Test parsing of Drupal 8 menu link files.

File

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

Class

PotxTest
Ensure that the translation template extractor functions properly.

Namespace

Drupal\Tests\potx\Kernel

Code

public function testDrupal8MenuLinksYml() {
  $this
    ->parseFile($this->tests_root . '/potx_test_8.links.menu.yml', POTX_API_8);
  $this
    ->assertMsgId('Test menu link title');
  $this
    ->assertMsgId('Test menu link description.');
  $this
    ->assertMsgIdContext('Test menu link title with context', 'Menu item context');
  $this
    ->assertPotxErrors([]);
}