From 7aa01c4c77d8d3e7d0a11dc7c15e7606d9168f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Fri, 4 Jun 2010 23:42:21 -0430 Subject: [PATCH] Migrating SessionHelperTest to phpunit --- .../cases/libs/view/helpers/session.test.php | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/cake/tests/cases/libs/view/helpers/session.test.php b/cake/tests/cases/libs/view/helpers/session.test.php index fdaba33a9..63d3b1d06 100644 --- a/cake/tests/cases/libs/view/helpers/session.test.php +++ b/cake/tests/cases/libs/view/helpers/session.test.php @@ -37,7 +37,7 @@ class SessionHelperTest extends CakeTestCase { * @access public * @return void */ - function startTest() { + function setUp() { $this->Session = new SessionHelper(); $_SESSION = array( @@ -77,27 +77,9 @@ class SessionHelperTest extends CakeTestCase { function tearDown() { $_SESSION = array(); unset($this->Session); - } - -/** - * endTest - * - * @access public - * @return void - */ - function endTest() { App::build(); } -/** - * test construction and initial property settings - * - * @return void - */ - function testConstruct() { - $this->assertFalse(empty($this->Session->sessionTime)); - $this->assertFalse(empty($this->Session->security)); - } /** * testRead method * @@ -220,7 +202,7 @@ class SessionHelperTest extends CakeTestCase { $this->assertFalse($this->Session->flash('bare')); $result = ob_get_contents(); ob_clean(); - $this->assertFalse($result); + $this->assertEquals($result, ''); } /**