~artur-barczynski/azsystem/trunk

« back to all changes in this revision

Viewing changes to lib/Cake/Test/Fixture/BookFixture.php

  • Committer: Artur Barczynski
  • Date: 2012-09-20 16:31:07 UTC
  • Revision ID: artur@arturkb.pl-20120920163107-oakeg1a4h9e6d37f
Init

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Short description for file.
 
4
 *
 
5
 * PHP 5
 
6
 *
 
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)
 
9
 *
 
10
 * Licensed under The MIT License
 
11
 * Redistributions of files must retain the above copyright notice
 
12
 *
 
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)
 
18
 */
 
19
 
 
20
/**
 
21
 * Short description for class.
 
22
 *
 
23
 * @package       Cake.Test.Fixture
 
24
 */
 
25
class BookFixture extends CakeTestFixture {
 
26
 
 
27
/**
 
28
 * name property
 
29
 *
 
30
 * @var string 'Book'
 
31
 */
 
32
        public $name = 'Book';
 
33
 
 
34
/**
 
35
 * fields property
 
36
 *
 
37
 * @var array
 
38
 */
 
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)
 
46
        );
 
47
 
 
48
/**
 
49
 * records property
 
50
 *
 
51
 * @var array
 
52
 */
 
53
        public $records = array(
 
54
                array('id' => 1, 'isbn' => '1234567890', 'title' => 'Faust', 'author' => 'Johann Wolfgang von Goethe')
 
55
        );
 
56
}