1
0
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:
Cameron
2021-02-17 14:33:35 -08:00
parent e371da1785
commit 823a228e7e
8 changed files with 216 additions and 21 deletions

View File

@@ -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;