3
* Short description for file.
7
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
8
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
10
* Licensed under The MIT License
11
* Redistributions of files must retain the above copyright notice
13
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
14
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
15
* @package Cake.Test.Fixture
16
* @since CakePHP(tm) v 1.2.0.7198
17
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
21
* Short description for class.
23
* @package Cake.Test.Fixture
25
class BookFixture extends CakeTestFixture {
32
public $name = 'Book';
39
public $fields = array(
40
'id' => array('type' => 'integer', 'key' => 'primary'),
41
'isbn' => array('type' => 'string', 'length' => 13),
42
'title' => array('type' => 'string', 'length' => 255),
43
'author' => array('type' => 'string', 'length' => 255),
44
'year' => array('type' => 'integer', 'null' => true),
45
'pages' => array('type' => 'integer', 'null' => true)
53
public $records = array(
54
array('id' => 1, 'isbn' => '1234567890', 'title' => 'Faust', 'author' => 'Johann Wolfgang von Goethe')