/**
  * testSessionError method
  *
  * @return void
  */
 public function testSessionError()
 {
     $Session = new SessionComponent($this->ComponentCollection);
     $this->assertFalse($Session->error());
 }
 /**
  * testSessionError method
  *
  * @return void
  */
 public function testSessionError()
 {
     CakeSession::$lastError = null;
     $Session = new SessionComponent($this->ComponentCollection);
     $this->assertFalse($Session->error());
 }
Exemplo n.º 3
0
 /**
  * testSessionError method
  *
  * @access public
  * @return void
  */
 function testSessionError()
 {
     $Session = new SessionComponent();
     $this->assertFalse($Session->error());
     Configure::write('Session.start', false);
     $Session = new SessionComponent();
     $this->assertFalse($Session->__active);
     $this->assertFalse($Session->error());
     Configure::write('Session.start', true);
 }