Added test to prove #5482 (Trying to get property of non-object).

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7665 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
renan.saddam 2008-09-26 01:37:17 +00:00
parent 370b20dce6
commit a628dfa028

View file

@ -32,7 +32,7 @@ App::import('Component', 'Cookie');
/**
* ControllerPost class
*
* @package cake
* @package cake.tests
* @subpackage cake.tests.cases.libs.controller
*/
class ControllerPost extends CakeTestModel {
@ -94,7 +94,7 @@ class ControllerPost extends CakeTestModel {
/**
* ControllerComment class
*
* @package cake
* @package cake.tests
* @subpackage cake.tests.cases.libs.controller
*/
class ControllerComment extends CakeTestModel {
@ -127,6 +127,41 @@ class ControllerComment extends CakeTestModel {
*/
var $alias = 'ControllerComment';
}
/**
* ControllerAlias class
*
* @package cake.tests
* @subpackage cake.tests.cases.libs.controller
*/
class ControllerAlias extends CakeTestModel {
/**
* name property
*
* @var string 'ControllerAlias'
* @access public
*/
var $name = 'ControllerAlias';
/**
* alias property
*
* @var string 'ControllerSomeAlias'
* @access public
*/
var $alias = 'ControllerSomeAlias';
/**
* useTable property
*
* @var string 'posts'
* @access public
*/
var $useTable = 'posts';
}
/**
* ControllerPaginateModel class
*
* @package cake.tests
* @subpackage cake.tests.cases.libs.controller
*/
class ControllerPaginateModel extends CakeTestModel {
/**
* name property
@ -248,7 +283,7 @@ class TestController extends AppController {
* @var array
* @access public
*/
var $uses = array('ControllerComment');
var $uses = array('ControllerComment', 'ControllerAlias');
/**
* index method
*