Remove redundant Context::init() in unit tests

This commit is contained in:
Kijin Sung 2023-11-06 09:18:21 +09:00
parent 073924efcf
commit 177e54f86c
5 changed files with 0 additions and 13 deletions

View file

@ -2,11 +2,6 @@
class SMSTest extends \Codeception\Test\Unit
{
public function _before()
{
Context::init();
}
public function testGetSetDefaultDriver()
{
$driver = Rhymix\Framework\SMS::getDefaultDriver();

View file

@ -4,7 +4,6 @@ class TemplateTest extends \Codeception\Test\Unit
{
public function _before()
{
Context::init();
$this->baseurl = '/' . basename(dirname(dirname(dirname(__DIR__)))) . '/';
}

View file

@ -5,7 +5,6 @@ class ModuleInfoParserTest extends \Codeception\Test\Unit
public function testLoadXML()
{
// Basic info
Context::init();
Context::setLangType('ko');
$info = Rhymix\Framework\Parsers\ModuleInfoParser::loadXML(\RX_BASEDIR . 'tests/_data/module/info.xml');
$this->assertTrue(is_object($info));

View file

@ -7,7 +7,6 @@ class TemplateParserV2Test extends \Codeception\Test\Unit
public function _before()
{
Context::init();
$this->baseurl = '/' . basename(dirname(dirname(dirname(dirname(__DIR__))))) . '/';
}

View file

@ -2,11 +2,6 @@
class LegacyTest extends \Codeception\Test\Unit
{
public function _before()
{
Context::init();
}
public function testGetModule()
{
$this->assertTrue(getModule('board', 'controller') instanceof BoardController);