diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-09-15 17:10:39 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-09-15 17:10:39 +0000 |
commit | 6c0f8eba1c55b01e8dc3122f67cda34308ba94a2 (patch) | |
tree | e036f2d12a2575241f0a46f095bfa6d4bc5b66dd /modules/simpletest/tests | |
parent | 60f14083f4ba53ecfbf741d34b6a76e9722c5287 (diff) | |
download | brdo-6c0f8eba1c55b01e8dc3122f67cda34308ba94a2.tar.gz brdo-6c0f8eba1c55b01e8dc3122f67cda34308ba94a2.tar.bz2 |
#469242 by tic2000, Pasqualle, pwolanin, Nick Lewis, moshe weitzman, Rob Loach,
and alexanderpas: page.tpl.php has now been split into html.tpl.php
(for <html>, <head>, and <body>) and page.tpl.php (for page content).
This now provides consistency for granular theming of renderable output in all
template files.
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r-- | modules/simpletest/tests/theme.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/simpletest/tests/theme.test b/modules/simpletest/tests/theme.test index 805d85510..29fc445c7 100644 --- a/modules/simpletest/tests/theme.test +++ b/modules/simpletest/tests/theme.test @@ -26,17 +26,17 @@ class TemplateUnitTest extends DrupalWebTestCase { // test runner fails. variable_set('site_frontpage', 'nobody-home'); $args = array('node', '1', 'edit'); - $suggestions = template_page_suggestions($args); + $suggestions = template_page_suggestions($args, 'page'); $this->assertEqual($suggestions, array('page-node', 'page-node-%', 'page-node-1', 'page-node-edit'), t('Found expected node edit page template suggestions')); // Check attack vectors. $args = array('node', '\\1'); - $suggestions = template_page_suggestions($args); + $suggestions = template_page_suggestions($args, 'page'); $this->assertEqual($suggestions, array('page-node', 'page-node-%', 'page-node-1'), t('Removed invalid \\ from template suggestions')); $args = array('node', '1/'); - $suggestions = template_page_suggestions($args); + $suggestions = template_page_suggestions($args, 'page'); $this->assertEqual($suggestions, array('page-node', 'page-node-%', 'page-node-1'), t('Removed invalid / from template suggestions')); $args = array('node', "1\0"); - $suggestions = template_page_suggestions($args); + $suggestions = template_page_suggestions($args, 'page'); $this->assertEqual($suggestions, array('page-node', 'page-node-%', 'page-node-1'), t('Removed invalid \\0 from template suggestions')); // Tests for drupal_discover_template() $suggestions = array('page'); |