public function PotxTest::testDrupalInfo in Translation template extractor 8
Test parsing of Drupal 6 info file. Drupal 5 and 7 have no other rules.
File
- tests/
src/ Kernel/ PotxTest.php, line 622
Class
- PotxTest
- Ensure that the translation template extractor functions properly.
Namespace
Drupal\Tests\potx\KernelCode
public function testDrupalInfo() {
// Parse and build the Drupal 6 module file.
$filename = $this->tests_root . '/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');
$this
->assertPotxErrors([]);
}