diff --git a/tests/unit/e_parseTest.php b/tests/unit/e_parseTest.php index 635f33d1a..cd0b3f8c1 100644 --- a/tests/unit/e_parseTest.php +++ b/tests/unit/e_parseTest.php @@ -304,6 +304,18 @@ TMP; 'input' => "Something & something", 'expected' => 'Something & something' ), + 15 => array( + 'input' => array('news_category', '2'), + 'expected' => array('news_category', '2') + ), + 16 => array( + 'input' => array('my/customer/key'=>'news_category', 3=>'2', 'bla'=>5), + 'expected' => array('my/customer/key'=>'news_category', 3=>'2', 'bla'=>5), + ), + 17 => array( + 'input' => array('Some long string & stuff'=> 0, 'other'=>null, 'extra'=>0.3, 'null'=>null), + 'expected' => array('Some long string & stuff'=> 0, 'other'=>null, 'extra'=>0.3, 'null'=>null), + ), ); diff --git a/tests/unit/e_themeTest.php b/tests/unit/e_themeTest.php index 9df0523ef..645967116 100644 --- a/tests/unit/e_themeTest.php +++ b/tests/unit/e_themeTest.php @@ -83,7 +83,8 @@ 'other_layout' => array( 0 => 'myplugin.php', - 1 => 'forum/index.php' + 1 => 'forum/index.php', + 2 => 'page.php' ), ); @@ -101,11 +102,12 @@ 7 => array('url' => SITEURL."news.php?5.3", 'script' => null, 'expected' => 'jumbotron_sidebar_right'), 8 => array('url' => SITEURL."usersettings.php", 'script' => null, 'expected' => 'jumbotron_sidebar_right'), 9 => array('url' => SITEURL."user.php", 'script' => null, 'expected' => 'jumbotron_full'), - 10 => array('url' => SITEURL."page.php", 'script' => null, 'expected' => 'jumbotron_sidebar_right'), + 10 => array('url' => SITEURL."page.php", 'script' => null, 'expected' => 'other_layout'), 11 => array('url' => SITEURL."page.php?3", 'script' => null, 'expected' => 'jumbotron_home'), 12 => array('url' => SITEURL."somepage/", 'script' => "user.php", 'expected' => 'jumbotron_full'), 13 => array('url' => SITEURL."plugin/", 'script' => "myplugin.php", 'expected' => 'other_layout'), 14 => array('url' => SITEURL."forum/index.php", 'script' => "index.php", 'expected' => 'other_layout'), + 15 => array('url' => SITEURL."my-sef-page-chapter/my-sef-page-url", 'script' => "page.php", 'expected' => 'other_layout'), ); foreach($tests as $item=>$var)