mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 23:36:29 +02:00
Issue #3912 Typing ':' now pops-up a menu of available routes. Bootstrap-suggest library added for this and other areas in future.
This commit is contained in:
@@ -832,13 +832,42 @@ class e107Test extends \Codeception\Test\Unit
|
||||
$res = null;
|
||||
$this->assertTrue($res);
|
||||
}
|
||||
|
||||
*/
|
||||
public function testGetUrlConfig()
|
||||
{
|
||||
$res = null;
|
||||
$this->assertTrue($res);
|
||||
}
|
||||
|
||||
|
||||
$expected = array (
|
||||
'index' =>
|
||||
array (
|
||||
'alias' => 'contact',
|
||||
'regex' => '^{alias}\\/?$',
|
||||
'sef' => '{alias}',
|
||||
'redirect' => '{e_BASE}contact.php',
|
||||
),
|
||||
);
|
||||
|
||||
$result = e107::getUrlConfig();
|
||||
$this->assertNotEmpty($result['contact']);
|
||||
$this->assertSame($expected, $result['contact']);
|
||||
|
||||
// ----
|
||||
|
||||
$expected = array (
|
||||
'alias' => 'contact',
|
||||
'regex' => '^{alias}\\/?$',
|
||||
'sef' => '{alias}',
|
||||
'redirect' => '{e_BASE}contact.php',
|
||||
);
|
||||
|
||||
$result = e107::getUrlConfig('route');
|
||||
$this->assertNotEmpty($result['contact/index']);
|
||||
$this->assertSame($expected, $result['contact/index']);
|
||||
|
||||
|
||||
|
||||
}
|
||||
/*
|
||||
public function testGetThemeInfo()
|
||||
{
|
||||
$res = null;
|
||||
|
Reference in New Issue
Block a user