Merge pull request #353 from shama/patch-cakesession-test-fix

Fix CakeSession test cases
This commit is contained in:
ADmad 2011-12-05 05:58:56 -08:00
commit dde798284b

View file

@ -382,7 +382,7 @@ class CakeSessionTest extends CakeTestCase {
*/
public function testCheckKeyWithSpaces() {
$this->assertTrue(TestCakeSession::write('Session Test', "test"));
$this->assertEquals('test', TestCakeSession::check('Session Test'));
$this->assertTrue(TestCakeSession::check('Session Test'));
TestCakeSession::delete('Session Test');
$this->assertTrue(TestCakeSession::write('Session Test.Test Case', "test"));
@ -526,6 +526,7 @@ class CakeSessionTest extends CakeTestCase {
App::build(array(
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
), true);
CakePlugin::load('TestPlugin');
Configure::write('Session', array(
'defaults' => 'cake',