function CoderReviewI18nTest::testExtraTs in Coder 7.2
Same name and namespace in other branches
- 7 coder_review/tests/coder_review_i18n.test \CoderReviewI18NTest::testExtraTs()
Tests functionality to detect multiple incorrect use of t() function.
File
- coder_review/
tests/ coder_review_i18n.test, line 71
Class
- CoderReviewI18nTest
- Tests the Coder_review detection of internationalization functionality.
Code
function testExtraTs() {
$this
->assertCoderReviewPass(" watchdog('name', 'Your message.');");
$this
->assertCoderReviewFail(" watchdog('name', t('Your message.'));");
$this
->assertCoderReviewFail(" watchdog('name', st('Your message.'));");
}