diff --git a/tests/unit/e_themeTest.php b/tests/unit/e_themeTest.php index 16208bded..733967795 100644 --- a/tests/unit/e_themeTest.php +++ b/tests/unit/e_themeTest.php @@ -69,6 +69,7 @@ 0 => 'FRONTPAGE', 1 => 'page.php?3!', 2 => '/my-sef-url!', + 3 => '/news/?page=', ), 'jumbotron_full' => array ( @@ -90,6 +91,7 @@ 2 => 'page.php$', // <-- $ = script name match 3 => '/user/settings?', 4 => 'script.php$', + 5 => '/news/?bla', ), 'script_match' => array( @@ -119,11 +121,13 @@ 14 => array('url' => SITEURL."forum/index.php", 'script' => "/index.php", 'expected' => 'other_layout'), 15 => array('url' => SITEURL."my-chapter/my-title", 'script' => "/page.php", 'expected' => 'other_layout'), 16 => array('url' => SITEURL."my-sef-url", 'script' => '/index.php', 'expected' => 'jumbotron_home'), - 17 => array('url' => SITEURL."/user/settings?id=1", 'script' => '/usersettings.php', 'expected' => 'other_layout'), - 18 => array('url' => SITEURL."/user/Tijn", 'script' => '/user.php', 'expected' => 'jumbotron_sidebar_right'), + 17 => array('url' => SITEURL."user/settings?id=1", 'script' => '/usersettings.php', 'expected' => 'other_layout'), + 18 => array('url' => SITEURL."user/Tijn", 'script' => '/user.php', 'expected' => 'jumbotron_sidebar_right'), 19 => array('url' => SITEURL."user.php?id.1", 'script' => '/user.php', 'expected' => 'jumbotron_sidebar_right'), 20 => array('url' => SITEURL."pluginpage/", 'script' => '/myplugin/index.php', 'expected' => 'script_match'), - + 21 => array('url' => SITEURL."news/?page=", 'script' => '/news.php', 'expected' => 'jumbotron_home'), + 22 => array('url' => SITEURL."news/my-news-title", 'script' => '/news.php', 'expected' => 'jumbotron_sidebar_right'), + 23 => array('url' => SITEURL."news/?bla", 'script' => '/news.php', 'expected' => 'other_layout'), );