2014-04-23 10:51:50 +08:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Short description for file.
|
|
|
|
*
|
2018-03-18 09:24:15 +08:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
|
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2014-04-23 10:51:50 +08:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2018-03-18 09:24:15 +08:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
|
|
|
* @link https://cakephp.org CakePHP(tm) Project
|
2014-04-23 10:51:50 +08:00
|
|
|
* @package Cake.Test.Fixture
|
|
|
|
* @since CakePHP(tm) v 1.2.0.6879 //Correct version number as needed**
|
2018-03-18 09:24:15 +08:00
|
|
|
* @license https://opensource.org/licenses/mit-license.php MIT License
|
2014-04-23 10:51:50 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-03-18 09:24:15 +08:00
|
|
|
* NodeFixture
|
2014-04-23 10:51:50 +08:00
|
|
|
*
|
|
|
|
* @package Cake.Test.Fixture
|
|
|
|
* @since CakePHP(tm) v 1.2.0.6879 //Correct version number as needed**
|
|
|
|
*/
|
|
|
|
class NodeFixture extends CakeTestFixture {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* fields property
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $fields = array(
|
|
|
|
'id' => array('type' => 'integer', 'key' => 'primary'),
|
|
|
|
'name' => 'string',
|
|
|
|
'state' => 'integer'
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* records property
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $records = array(
|
|
|
|
array('id' => 1, 'name' => 'First', 'state' => 50),
|
|
|
|
array('id' => 2, 'name' => 'Second', 'state' => 60),
|
|
|
|
);
|
|
|
|
}
|