mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
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:
parent
370b20dce6
commit
a628dfa028
1 changed files with 44 additions and 9 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue