You are here

public function PotxTestCase::testDrupal8MenuLinksYml in Translation template extractor 7.2

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

Test parsing of Drupal 8 menu link files.

File

tests/potx.test, line 333
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 testDrupal8MenuLinksYml() {
  $this
    ->parseFile(drupal_get_path('module', 'potx') . '/tests/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');
}