mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +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.'controller'.DS.'controller.php';
|
||||||
require_once LIBS.DS.'model'.DS.'model.php';
|
require_once LIBS.DS.'model'.DS.'model.php';
|
||||||
|
|
||||||
class TheTestController extends Controller {
|
if (!class_exists('TheTestController')) {
|
||||||
var $name = 'TheTest';
|
class TheTestController extends Controller {
|
||||||
var $uses = null;
|
var $name = 'TheTest';
|
||||||
}
|
var $uses = null;
|
||||||
|
}
|
||||||
class Contact extends Model {
|
}
|
||||||
|
|
||||||
var $primaryKey = 'id';
|
class Contact extends Model {
|
||||||
var $useTable = false;
|
|
||||||
|
var $primaryKey = 'id';
|
||||||
function loadInfo() {
|
var $useTable = false;
|
||||||
return new Set(array(
|
|
||||||
array('name' => 'id', 'type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
|
function loadInfo() {
|
||||||
array('name' => 'name', 'type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
|
return new Set(array(
|
||||||
array('name' => 'created', 'type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
|
array('name' => 'id', 'type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
|
||||||
array('name' => 'updated', 'type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
|
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.
|
* Short description for class.
|
||||||
|
|
Loading…
Add table
Reference in a new issue