Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix CakeSession testCheckKeyWithSpaces and testUsingPluginHandler tes…
…t cases
  • Loading branch information
shama committed Dec 4, 2011
1 parent 1bc3583 commit 8e70f4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php
Expand Up @@ -382,7 +382,7 @@ public function testCheckingSavedEmpty() {
*/
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"));
Expand Down Expand Up @@ -526,6 +526,7 @@ public function testUsingPluginHandler() {
App::build(array(
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
), true);
CakePlugin::load('TestPlugin');

Configure::write('Session', array(
'defaults' => 'cake',
Expand Down

0 comments on commit 8e70f4a

Please sign in to comment.