統計
| ブランチ: | リビジョン:

pictcode_admin / lib / Cake / Test / Fixture / JoinACFixture.php @ 5ad38a95

履歴 | 表示 | アノテート | ダウンロード (1.874 KB)

1
<?php
2
/**
3
 * Short description for file.
4
 *
5
 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
6
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7
 *
8
 * Licensed under The MIT License
9
 * For full copyright and license information, please see the LICENSE.txt
10
 * Redistributions of files must retain the above copyright notice
11
 *
12
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13
 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
14
 * @package       Cake.Test.Fixture
15
 * @since         CakePHP(tm) v 1.2.0.6317
16
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
17
 */
18

    
19
/**
20
 * Class JoinACFixture
21
 *
22
 * @package       Cake.Test.Fixture
23
 */
24
class JoinACFixture extends CakeTestFixture {
25

    
26
/**
27
 * name property
28
 *
29
 * @var string
30
 */
31
        public $name = 'JoinAsJoinC';
32

    
33
/**
34
 * fields property
35
 *
36
 * @var array
37
 */
38
        public $fields = array(
39
                'id' => array('type' => 'integer', 'key' => 'primary'),
40
                'join_a_id' => array('type' => 'integer', 'length' => 10, 'null' => true),
41
                'join_c_id' => array('type' => 'integer', 'default' => null),
42
                'other' => array('type' => 'string', 'default' => ''),
43
                'created' => array('type' => 'datetime', 'null' => true),
44
                'updated' => array('type' => 'datetime', 'null' => true)
45
        );
46

    
47
/**
48
 * records property
49
 *
50
 * @var array
51
 */
52
        public $records = array(
53
                array('join_a_id' => 1, 'join_c_id' => 2, 'other' => 'Data for Join A 1 Join C 2', 'created' => '2008-01-03 10:57:22', 'updated' => '2008-01-03 10:57:22'),
54
                array('join_a_id' => 2, 'join_c_id' => 3, 'other' => 'Data for Join A 2 Join C 3', 'created' => '2008-01-03 10:57:23', 'updated' => '2008-01-03 10:57:23'),
55
                array('join_a_id' => 3, 'join_c_id' => 1, 'other' => 'Data for Join A 3 Join C 1', 'created' => '2008-01-03 10:57:24', 'updated' => '2008-01-03 10:57:24')
56
        );
57
}