mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Extra tests for getThemeLayout()
This commit is contained in:
@@ -67,7 +67,8 @@
|
|||||||
'jumbotron_home' =>
|
'jumbotron_home' =>
|
||||||
array (
|
array (
|
||||||
0 => 'FRONTPAGE',
|
0 => 'FRONTPAGE',
|
||||||
1 => 'page.php?3!'
|
1 => 'page.php?3!',
|
||||||
|
2 => '/my-sef-url!',
|
||||||
),
|
),
|
||||||
'jumbotron_full' =>
|
'jumbotron_full' =>
|
||||||
array (
|
array (
|
||||||
@@ -107,7 +108,8 @@
|
|||||||
12 => array('url' => SITEURL."somepage/", 'script' => "user.php", 'expected' => 'jumbotron_full'),
|
12 => array('url' => SITEURL."somepage/", 'script' => "user.php", 'expected' => 'jumbotron_full'),
|
||||||
13 => array('url' => SITEURL."plugin/", 'script' => "myplugin.php", 'expected' => 'other_layout'),
|
13 => array('url' => SITEURL."plugin/", 'script' => "myplugin.php", 'expected' => 'other_layout'),
|
||||||
14 => array('url' => SITEURL."forum/index.php", 'script' => "index.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'),
|
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'),
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach($tests as $item=>$var)
|
foreach($tests as $item=>$var)
|
||||||
|
Reference in New Issue
Block a user