mirror of
https://github.com/e107inc/e107.git
synced 2025-10-15 06:54:25 +02:00
61 lines
1.0 KiB
PHP
61 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* e107 website system
|
|
*
|
|
* Copyright (C) 2008-2018 e107 Inc (e107.org)
|
|
* Released under the terms and conditions of the
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
*
|
|
*/
|
|
|
|
|
|
class e107ConstantsTest extends \Codeception\Test\Unit
|
|
{
|
|
public function testVerifyE_BASE()
|
|
{
|
|
|
|
$res = defined('e_BASE');
|
|
$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);
|
|
}
|
|
}
|