From f3b30d8afc7df8e5eeb85efec2dce0064b5d14fe Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 19 Aug 2016 23:14:33 +0900 Subject: [PATCH] Fix unit tests --- tests/unit/framework/SessionTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/framework/SessionTest.php b/tests/unit/framework/SessionTest.php index 35d550d65..3a901faf5 100644 --- a/tests/unit/framework/SessionTest.php +++ b/tests/unit/framework/SessionTest.php @@ -5,7 +5,7 @@ class SessionTest extends \Codeception\TestCase\Test public function _before() { Rhymix\Framework\Session::close(); - session_id('rhymix_test_session'); + session_id('rhymix-test-session'); $_SESSION = array(); $_COOKIE = array(); } @@ -13,7 +13,7 @@ class SessionTest extends \Codeception\TestCase\Test public function _after() { Rhymix\Framework\Session::close(); - session_id('rhymix_test_session'); + session_id('rhymix-test-session'); $_SESSION = array(); $_COOKIE = array(); } @@ -21,7 +21,7 @@ class SessionTest extends \Codeception\TestCase\Test public function _failed() { Rhymix\Framework\Session::close(); - session_id('rhymix_test_session'); + session_id('rhymix-test-session'); $_SESSION = array(); $_COOKIE = array(); } @@ -231,7 +231,7 @@ class SessionTest extends \Codeception\TestCase\Test public function testGetSetLanguage() { Rhymix\Framework\Session::start(); - $this->assertEquals(config('locale.default_language'), Rhymix\Framework\Session::getLanguage()); + $this->assertEquals(\Context::getLangType(), Rhymix\Framework\Session::getLanguage()); Rhymix\Framework\Session::setLanguage('ja'); $this->assertEquals('ja', Rhymix\Framework\Session::getLanguage());