From 8e70f4ac12bf2350d67b2bee657d285be0de1aa1 Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Sun, 4 Dec 2011 12:43:27 -0800 Subject: [PATCH] Fix CakeSession testCheckKeyWithSpaces and testUsingPluginHandler test cases --- lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php b/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php index 3d30dcd58..03e7c42e8 100644 --- a/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php @@ -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',