From 993675ab6a1e0ab4ad6777f32e5f927e610b8b4c Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 5 Feb 2009 01:05:17 +0000 Subject: #348627 by smk-ka and catch: Allow menu title callback property to bypass t() (+documentation and tests) --- modules/simpletest/tests/menu.test | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/simpletest/tests/menu.test') diff --git a/modules/simpletest/tests/menu.test b/modules/simpletest/tests/menu.test index 802216c26..a4935c968 100644 --- a/modules/simpletest/tests/menu.test +++ b/modules/simpletest/tests/menu.test @@ -20,6 +20,15 @@ class MenuIncTestCase extends DrupalWebTestCase { parent::setUp('menu_test'); } + /** + * Test title callback set to FALSE. + */ + function testTitleCallbackFalse() { + $this->drupalGet('node'); + $this->assertText('A title with @placeholder', t('Raw text found on the page')); + $this->assertNoText(t('A title with @placeholder', array('@placeholder' => 'some other text')), t('Text with placeholder substitutions not found.')); + } + /** * Tests for menu_name parameter for hook_menu(). */ -- cgit v1.2.3