You are here

public function PotxTestCase::testDrupalInfo in Translation template extractor 7.2

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

Test parsing of Drupal 6 info file. Drupal 5 and 7 have no other rules.

File

tests/potx.test, line 455
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 testDrupalInfo() {

  // Parse and build the Drupal 6 module file.
  $filename = drupal_get_path('module', 'potx') . '/tests/potx_test_6.info';
  $this
    ->parseFile($filename, POTX_API_6);

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