Fixed controller test case which generated a property undefined notice

This commit is contained in:
ADmad 2010-04-02 00:01:06 +05:30
parent 176c12e5fe
commit d92202c6da

View file

@ -829,7 +829,7 @@ class ControllerTest extends CakeTestCase {
$Controller->set('title', 'someTitle');
$this->assertIdentical($Controller->viewVars['title'], 'someTitle');
$this->assertNotEqual($Controller->pageTitle, 'someTitle');
$this->assertTrue(empty($Controller->pageTitle));
$Controller->viewVars = array();
$expected = array('ModelName' => 'name', 'ModelName2' => 'name2');