mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Remove redundant Context::init() in unit tests
This commit is contained in:
parent
073924efcf
commit
177e54f86c
5 changed files with 0 additions and 13 deletions
|
|
@ -2,11 +2,6 @@
|
||||||
|
|
||||||
class SMSTest extends \Codeception\Test\Unit
|
class SMSTest extends \Codeception\Test\Unit
|
||||||
{
|
{
|
||||||
public function _before()
|
|
||||||
{
|
|
||||||
Context::init();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testGetSetDefaultDriver()
|
public function testGetSetDefaultDriver()
|
||||||
{
|
{
|
||||||
$driver = Rhymix\Framework\SMS::getDefaultDriver();
|
$driver = Rhymix\Framework\SMS::getDefaultDriver();
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ class TemplateTest extends \Codeception\Test\Unit
|
||||||
{
|
{
|
||||||
public function _before()
|
public function _before()
|
||||||
{
|
{
|
||||||
Context::init();
|
|
||||||
$this->baseurl = '/' . basename(dirname(dirname(dirname(__DIR__)))) . '/';
|
$this->baseurl = '/' . basename(dirname(dirname(dirname(__DIR__)))) . '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ class ModuleInfoParserTest extends \Codeception\Test\Unit
|
||||||
public function testLoadXML()
|
public function testLoadXML()
|
||||||
{
|
{
|
||||||
// Basic info
|
// Basic info
|
||||||
Context::init();
|
|
||||||
Context::setLangType('ko');
|
Context::setLangType('ko');
|
||||||
$info = Rhymix\Framework\Parsers\ModuleInfoParser::loadXML(\RX_BASEDIR . 'tests/_data/module/info.xml');
|
$info = Rhymix\Framework\Parsers\ModuleInfoParser::loadXML(\RX_BASEDIR . 'tests/_data/module/info.xml');
|
||||||
$this->assertTrue(is_object($info));
|
$this->assertTrue(is_object($info));
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ class TemplateParserV2Test extends \Codeception\Test\Unit
|
||||||
|
|
||||||
public function _before()
|
public function _before()
|
||||||
{
|
{
|
||||||
Context::init();
|
|
||||||
$this->baseurl = '/' . basename(dirname(dirname(dirname(dirname(__DIR__))))) . '/';
|
$this->baseurl = '/' . basename(dirname(dirname(dirname(dirname(__DIR__))))) . '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,6 @@
|
||||||
|
|
||||||
class LegacyTest extends \Codeception\Test\Unit
|
class LegacyTest extends \Codeception\Test\Unit
|
||||||
{
|
{
|
||||||
public function _before()
|
|
||||||
{
|
|
||||||
Context::init();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testGetModule()
|
public function testGetModule()
|
||||||
{
|
{
|
||||||
$this->assertTrue(getModule('board', 'controller') instanceof BoardController);
|
$this->assertTrue(getModule('board', 'controller') instanceof BoardController);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue