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

Make sure admin icons are loaded during testing and when initializing form handler.

This commit is contained in:
Cameron
2021-01-25 12:04:59 -08:00
parent d03ef3a670
commit 876212d518
4 changed files with 6 additions and 17 deletions

View File

@@ -79,6 +79,7 @@ class e_form
public function __construct($enable_tabindex = false)
{
e107::loadAdminIcons(); // required below.
e107_include_once(e_LANGUAGEDIR.e_LANGUAGE. '/lan_form_handler.php');
$this->_tabindex_enabled = $enable_tabindex;
$this->_uc = e107::getUserClass();

View File

@@ -160,9 +160,9 @@ class e_formTest extends \Codeception\Test\Unit
$this->assertTrue(false, "Couldn't load e_form object");
}
e107::loadAdminIcons();
e107::includeLan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_admin.php');
e107::includeLan(e_PLUGIN.'forum/languages/English/English_front.php');
e107::loadAdminIcons();
include_once(e_PLUGIN.'forum/forum_class.php');
require_once(e_PLUGIN.'forum/templates/forum_icons_template.php');

View File

@@ -4,24 +4,10 @@
class e_navigationTest extends \Codeception\Test\Unit
{
/** @var e_navigation */
/*
protected $ep;
protected function _before()
{
try
{
$this->ep = $this->make('e_navigation');
}
catch(Exception $e)
{
$this->assertTrue(false, $e->getMessage());
}
}*/
e107::loadAdminIcons();
}
/*
public function testCompile()
{

View File

@@ -11,6 +11,8 @@
{
define("SEP", " <span class='fa fa-angle-double-right e-breadcrumb'></span> ");
}
e107::loadAdminIcons();
}
public function testAdminScripts()