2011-10-27 11:37:46 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Short description for file.
|
|
|
|
*
|
2017-06-10 22:15:34 +00:00
|
|
|
* CakePHP(tm) Tests <https://book.cakephp.org/2.0/en/development/testing.html>
|
2017-06-10 22:10:52 +00:00
|
|
|
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2011-10-27 11:37:46 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
2013-02-08 12:22:51 +00:00
|
|
|
* For full copyright and license information, please see the LICENSE.txt
|
2011-10-27 11:37:46 +00:00
|
|
|
* Redistributions of files must retain the above copyright notice
|
|
|
|
*
|
2017-06-10 22:10:52 +00:00
|
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
|
2017-06-10 22:15:34 +00:00
|
|
|
* @link https://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
2011-10-27 11:37:46 +00:00
|
|
|
* @package Cake.Test.Fixture
|
2011-11-25 13:03:58 +00:00
|
|
|
* @since CakePHP(tm) v 2.1
|
2013-05-30 22:11:14 +00:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
2011-10-27 11:37:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Short description for class.
|
|
|
|
*
|
|
|
|
* @package Cake.Test.Fixture
|
|
|
|
*/
|
|
|
|
class ArmorFixture extends CakeTestFixture {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Datasource
|
|
|
|
*
|
|
|
|
* Used for Multi database fixture test
|
|
|
|
*
|
2014-07-03 13:36:42 +00:00
|
|
|
* @var string
|
2011-10-27 11:37:46 +00:00
|
|
|
*/
|
|
|
|
public $useDbConfig = 'test2';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* fields property
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $fields = array(
|
|
|
|
'id' => array('type' => 'integer', 'key' => 'primary'),
|
|
|
|
'name' => array('type' => 'string', 'null' => false),
|
|
|
|
'created' => 'datetime',
|
|
|
|
'updated' => 'datetime'
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* records property
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $records = array(
|
2011-11-25 13:03:58 +00:00
|
|
|
array('name' => 'Leather', 'created' => '2007-03-17 01:16:23'),
|
|
|
|
array('name' => 'Chainmail', 'created' => '2007-03-17 01:18:23'),
|
|
|
|
array('name' => 'Cloak', 'created' => '2007-03-17 01:20:23'),
|
|
|
|
array('name' => 'Bikini', 'created' => '2007-03-17 01:22:23'),
|
2011-10-27 11:37:46 +00:00
|
|
|
);
|
|
|
|
}
|