1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 02:57:15 +02:00

admin_icons_template.php reformatted to v2 standards.

This commit is contained in:
Cameron
2021-01-24 10:44:30 -08:00
parent 9487c620e3
commit a99300aed5
11 changed files with 288 additions and 540 deletions

View File

@@ -727,14 +727,23 @@ class e107Test extends \Codeception\Test\Unit
$this->assertTrue($res);
}
*/
public function testGetCoreTemplate()
public function testLoadAdminIcons()
{
$templates = scandir(e_CORE . "templates");
$e107 = $this->e107;
$e107::loadAdminIcons();
$e107::loadAdminIcons();
}
public function testGetCoreTemplate()
{
$e107 = $this->e107;
$templates = scandir(e_CORE . "templates");
$exclude = array(
'admin_icons_template.php',
// 'admin_icons_template.php',
'admin_template.php',// FIXME - convert the template to v2.x standards.
'bbcode_template.php',
'online_template.php', // FIXME - convert the template to v2.x standards.

View File

@@ -162,7 +162,8 @@ class e_formTest extends \Codeception\Test\Unit
e107::includeLan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_admin.php');
e107::includeLan(e_PLUGIN.'forum/languages/English/English_front.php');
include_once(e_CORE."templates/admin_icons_template.php");
e107::loadAdminIcons();
include_once(e_PLUGIN.'forum/forum_class.php');
require_once(e_PLUGIN.'forum/templates/forum_icons_template.php');

View File

@@ -155,10 +155,12 @@ class e_parse_shortcodeTest extends \Codeception\Test\Unit
public function testAdminShortcodes()
{
require_once(e_CORE."shortcodes/batch/admin_shortcodes.php");
require_once(e_CORE."templates/admin_icons_template.php");
require_once(e_LANGUAGEDIR.'English/admin/lan_header.php');
require_once(e_LANGUAGEDIR.'English/admin/lan_footer.php');
e107::loadAdminIcons();
try
{
$sc = $this->make('admin_shortcodes');

View File

@@ -142,10 +142,6 @@
'forum/forum_post.php',
'forum/forum_viewtopic.php', // needs a major cleanup.
'forum/index.php',
'log/log.php', // headers
'log/loginfo.php', // include.
'log/stats.php', // FIXME or remove the plugin
'log/stats_csv.php',
'online/online_menu.php', // FIXME missing template for member/new
'pm/pm.php', // FIXME contains exit, needs rework.
'poll/admin_config.php', // FIXME convert to admin-ui