diff --git a/cake/libs/controller/components/session.php b/cake/libs/controller/components/session.php index 4aa18a2ca38..e892a2c9bcc 100644 --- a/cake/libs/controller/components/session.php +++ b/cake/libs/controller/components/session.php @@ -1,6 +1,4 @@ - * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) + * Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @filesource - * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) + * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org) * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests * @package cake * @subpackage cake.tests.cases.libs.controller.components * @since CakePHP(tm) v 1.2.0.5436 - * @version $Revision$ - * @modifiedby $LastChangedBy$ - * @lastmodified $Date$ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ App::import('Controller', 'Controller', false); @@ -247,24 +242,24 @@ function testSessionReadWrite() { $this->assertTrue($Session->write('Test', 'some value')); $this->assertEqual($Session->read('Test'), 'some value'); $this->assertFalse($Session->write('Test.key', 'some value')); - $Session->del('Test'); + $Session->delete('Test'); $this->assertTrue($Session->write('Test.key.path', 'some value')); $this->assertEqual($Session->read('Test.key.path'), 'some value'); $this->assertEqual($Session->read('Test.key'), array('path' => 'some value')); $this->assertTrue($Session->write('Test.key.path2', 'another value')); $this->assertEqual($Session->read('Test.key'), array('path' => 'some value', 'path2' => 'another value')); - $Session->del('Test'); + $Session->delete('Test'); $array = array('key1' => 'val1', 'key2' => 'val2', 'key3' => 'val3'); $this->assertTrue($Session->write('Test', $array)); $this->assertEqual($Session->read('Test'), $array); - $Session->del('Test'); + $Session->delete('Test'); $this->assertFalse($Session->write(array('Test'), 'some value')); $this->assertTrue($Session->write(array('Test' => 'some value'))); $this->assertEqual($Session->read('Test'), 'some value'); - $Session->del('Test'); + $Session->delete('Test'); Configure::write('Session.start', false); $Session =& new SessionComponent(); @@ -274,27 +269,6 @@ function testSessionReadWrite() { Configure::write('Session.start', true); } -/** - * testSessionDel method - * - * @access public - * @return void - */ - function testSessionDel() { - $Session =& new SessionComponent(); - - $this->assertFalse($Session->del('Test')); - - $Session->write('Test', 'some value'); - $this->assertTrue($Session->del('Test')); - - Configure::write('Session.start', false); - $Session =& new SessionComponent(); - $Session->write('Test', 'some value'); - $this->assertFalse($Session->del('Test')); - Configure::write('Session.start', true); - } - /** * testSessionDelete method * @@ -361,7 +335,7 @@ function testSessionFlash() { $Session->setFlash('This is a test message', 'non_existing_layout'); $this->assertEqual($Session->read('Message.myFlash'), array('message' => 'This is a test message', 'layout' => 'default', 'params' => array())); - $Session->del('Message'); + $Session->delete('Message'); } /**