Browse Source

fix last failing test

euromark 13 years ago
parent
commit
94daf1d17d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Test/Case/Controller/Component/CommonComponentTest.php

+ 2 - 1
Test/Case/Controller/Component/CommonComponentTest.php

@@ -117,11 +117,12 @@ class CommonComponentTest extends CakeTestCase {
 	}
 
 	public function testFlashMessage() {
+		$this->skipIf(php_sapi_name() === 'cli', 'Cannot test session in CLI');
+
 		$this->Controller->Session->delete('messages');
 		$is = $this->Controller->Common->flashMessage('efg');
 
 		$res = $this->Controller->Session->read('messages');
-		//debug($res);
 		$this->assertTrue(!empty($res));
 		$this->assertTrue(isset($res['info'][0]) && $res['info'][0] === 'efg');
 	}