diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-02-05 01:05:17 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-02-05 01:05:17 +0000 |
commit | 993675ab6a1e0ab4ad6777f32e5f927e610b8b4c (patch) | |
tree | 2d604875d8f7d07f3a01c8f75420fd1949b13725 /modules/simpletest/tests/menu.test | |
parent | c6dd7bec5e09c9a381f18f90baf9dacb280bd4cf (diff) | |
download | brdo-993675ab6a1e0ab4ad6777f32e5f927e610b8b4c.tar.gz brdo-993675ab6a1e0ab4ad6777f32e5f927e610b8b4c.tar.bz2 |
#348627 by smk-ka and catch: Allow menu title callback property to bypass t() (+documentation and tests)
Diffstat (limited to 'modules/simpletest/tests/menu.test')
-rw-r--r-- | modules/simpletest/tests/menu.test | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -21,6 +21,15 @@ class MenuIncTestCase extends DrupalWebTestCase { } /** + * 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(). */ function testMenuName() { |