Removing invalid test

This commit is contained in:
Larry E. Masters 2015-12-28 23:36:37 -05:00
parent bc005cd014
commit b1d93377b6

View file

@ -201,9 +201,7 @@ class SessionComponentTest extends CakeTestCase {
$this->assertTrue($Session->write('Test', $array)); $this->assertTrue($Session->write('Test', $array));
$this->assertEquals($Session->read('Test'), $array); $this->assertEquals($Session->read('Test'), $array);
$Session->delete('Test'); $Session->delete('Test');
//This test creates a numeric key 0 which is not a valid session key
//$this->assertTrue($Session->write(array('Test'), 'some value'));
$this->assertTrue($Session->write(array('Test' => 'some value'))); $this->assertTrue($Session->write(array('Test' => 'some value')));
$this->assertEquals('some value', $Session->read('Test')); $this->assertEquals('some value', $Session->read('Test'));
$Session->delete('Test'); $Session->delete('Test');