mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 23:26:41 +02:00
Merge branch 'master' of github.com:e107inc/e107-test
This commit is contained in:
@@ -31,7 +31,8 @@ $PLUGINS_DIRECTORY = 'e107_plugins/';
|
|||||||
$HANDLERS_DIRECTORY = 'e107_handlers/';
|
$HANDLERS_DIRECTORY = 'e107_handlers/';
|
||||||
$LANGUAGES_DIRECTORY = 'e107_languages/';
|
$LANGUAGES_DIRECTORY = 'e107_languages/';
|
||||||
$HELP_DIRECTORY = 'e107_docs/help/';
|
$HELP_DIRECTORY = 'e107_docs/help/';
|
||||||
$DOWNLOADS_DIRECTORY = 'e107_files/downloads/';
|
$MEDIA_DIRECTORY = 'e107_media/';
|
||||||
|
$SYSTEM_DIRECTORY = 'e107_system/';
|
||||||
|
|
||||||
|
|
||||||
define('e_MOD_REWRITE',true);
|
define('e_MOD_REWRITE',true);
|
||||||
?>
|
|
||||||
|
@@ -8,14 +8,53 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
|
||||||
|
|
||||||
class e107ConstantsTest extends TestCase
|
class e107ConstantsTest extends \Codeception\Test\Unit
|
||||||
{
|
{
|
||||||
public function teste_BASE()
|
public function testVerifyE_BASE()
|
||||||
{
|
{
|
||||||
// todo
|
|
||||||
$res = defined('e_BASE');
|
$res = defined('e_BASE');
|
||||||
$this->assertTrue($res);
|
$this->assertTrue($res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testVerifyE_SYSTEM_BASE()
|
||||||
|
{
|
||||||
|
$res = true;
|
||||||
|
|
||||||
|
if(!defined('e_SYSTEM'))
|
||||||
|
{
|
||||||
|
$res = false;
|
||||||
|
}
|
||||||
|
elseif(!defined('e_SYSTEM_BASE'))
|
||||||
|
{
|
||||||
|
$res = false;
|
||||||
|
}
|
||||||
|
elseif(e_SYSTEM_BASE === e_SYSTEM)
|
||||||
|
{
|
||||||
|
$res = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->assertTrue($res);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testVerifyE_MEDIA_BASE()
|
||||||
|
{
|
||||||
|
$res = true;
|
||||||
|
|
||||||
|
if(!defined('e_MEDIA'))
|
||||||
|
{
|
||||||
|
$res = false;
|
||||||
|
}
|
||||||
|
elseif(!defined('e_MEDIA_BASE'))
|
||||||
|
{
|
||||||
|
$res = false;
|
||||||
|
}
|
||||||
|
elseif(e_MEDIA_BASE === e_MEDIA)
|
||||||
|
{
|
||||||
|
$res = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->assertTrue($res);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user