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

Issue #5114 class conflict handling.

This commit is contained in:
camer0n
2023-11-24 10:44:00 -08:00
parent 56edcd53ee
commit 9461602e43
2 changed files with 28 additions and 8 deletions

View File

@@ -294,11 +294,20 @@ class e107Test extends \Codeception\Test\Unit
{
$e107 = $this->e107;
// test with path.
$result = $e107::getSingleton('override', e_HANDLER . 'override_class.php');
$this->assertNotEmpty($result, 'Override class not loaded');
$exists = method_exists($result, 'override_check');
$this->assertTrue($exists, 'Failed to load override class singleton');
// Test without path.
$result2 = $e107::getOverride();
$exists2 = method_exists($result2, 'override_check');
$this->assertTrue($exists2, 'Failed to load override class singleton');
}
/*