mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 10:36:16 +00:00
Setting checks for mock object declaration in FormHelper test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4627 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
92cd894314
commit
08805f57b7
1 changed files with 20 additions and 18 deletions
|
@ -39,25 +39,27 @@
|
|||
require_once LIBS.DS.'controller'.DS.'controller.php';
|
||||
require_once LIBS.DS.'model'.DS.'model.php';
|
||||
|
||||
class TheTestController extends Controller {
|
||||
var $name = 'TheTest';
|
||||
var $uses = null;
|
||||
}
|
||||
|
||||
class Contact extends Model {
|
||||
|
||||
var $primaryKey = 'id';
|
||||
var $useTable = false;
|
||||
|
||||
function loadInfo() {
|
||||
return new Set(array(
|
||||
array('name' => 'id', 'type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
|
||||
array('name' => 'name', 'type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
|
||||
array('name' => 'created', 'type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
|
||||
array('name' => 'updated', 'type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
|
||||
));
|
||||
if (!class_exists('TheTestController')) {
|
||||
class TheTestController extends Controller {
|
||||
var $name = 'TheTest';
|
||||
var $uses = null;
|
||||
}
|
||||
}
|
||||
|
||||
class Contact extends Model {
|
||||
|
||||
var $primaryKey = 'id';
|
||||
var $useTable = false;
|
||||
|
||||
function loadInfo() {
|
||||
return new Set(array(
|
||||
array('name' => 'id', 'type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
|
||||
array('name' => 'name', 'type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
|
||||
array('name' => 'created', 'type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
|
||||
array('name' => 'updated', 'type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Short description for class.
|
||||
|
|
Loading…
Add table
Reference in a new issue