private function PotxTest::assertNoMsgId in Translation template extractor 8
Assert the lack of a msgid construct in the .po file.
8 calls to PotxTest::assertNoMsgId()
- PotxTest::testDrupal5 in tests/
src/ Kernel/ PotxTest.php - Test parsing of Drupal 5 module.
- PotxTest::testDrupal6 in tests/
src/ Kernel/ PotxTest.php - Test parsing of Drupal 6 module.
- PotxTest::testDrupal7 in tests/
src/ Kernel/ PotxTest.php - Test parsing of Drupal 7 module.
- PotxTest::testDrupal8ConstraintMessages in tests/
src/ Kernel/ PotxTest.php - Test parsing Drupal 8 validation constraint messages.
- PotxTest::testDrupal8CustomYml in tests/
src/ Kernel/ PotxTest.php - Test parsing of custom yaml files.
File
- tests/
src/ Kernel/ PotxTest.php, line 727
Class
- PotxTest
- Ensure that the translation template extractor functions properly.
Namespace
Drupal\Tests\potx\KernelCode
private function assertNoMsgId($string, $message = '', $group = 'Other') {
if (!$message) {
$message = new FormattableMarkup('MsgID "@raw" not found', [
'@raw' => $string,
]);
}
$this
->assert(strpos($this->potx_output, 'msgid "' . _potx_format_quoted_string('"' . $string . '"') . '"') === FALSE, $message, $group);
}