diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-21 08:53:18 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-21 08:53:18 +0000 |
commit | 1242612ee7a9cc502895f31b3bd9e4b57587f8df (patch) | |
tree | 8741541b835b61bdd47fa29159d5adf4d5a82283 /modules/simpletest/tests/menu.test | |
parent | 379ef5dbac428169cfff66dfd050525361f9b919 (diff) | |
download | brdo-1242612ee7a9cc502895f31b3bd9e4b57587f8df.tar.gz brdo-1242612ee7a9cc502895f31b3bd9e4b57587f8df.tar.bz2 |
#606966 by chx, sun, mr.baileys: Fixed 'load arguments' of parent path are not inherited
Diffstat (limited to 'modules/simpletest/tests/menu.test')
-rw-r--r-- | modules/simpletest/tests/menu.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/simpletest/tests/menu.test b/modules/simpletest/tests/menu.test index 773282ed9..7a4560408 100644 --- a/modules/simpletest/tests/menu.test +++ b/modules/simpletest/tests/menu.test @@ -464,6 +464,22 @@ class MenuRouterTestCase extends DrupalWebTestCase { $asserted_title = $override ? 'Alternative example title - Case ' . $case_no : 'Example title - Case ' . $case_no; $this->assertTitle($asserted_title . ' | Drupal', t('Menu title is') . ': ' . $asserted_title, 'Menu'); } + + /** + * Tests inheritance of 'load arguments'. + */ + function testMenuLoadArgumentsInheritance() { + $arg1 = $this->randomName(); + $arg2 = $this->randomName(); + $expected = print_r(array('%menu_test_argument' => $arg1, '%' => $arg2), TRUE); + + $this->drupalGet("menu-test/arguments/$arg1/$arg2"); + $this->assertRaw($expected, t('Inherited load arguments found.')); + $this->drupalGet("menu-test/arguments/$arg1/$arg2/default"); + $this->assertRaw($expected, t('Inherited load arguments found.')); + $this->drupalGet("menu-test/arguments/$arg1/$arg2/task"); + $this->assertRaw($expected, t('Inherited load arguments found.')); + } } /** |