pictcode / lib / Cake / Test / Fixture / JoinABFixture.php @ 0b1b8047
履歴 | 表示 | アノテート | ダウンロード (1.874 KB)
1 | 635eef61 | spyder1211 | <?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 JoinABFixture
|
||
21 | *
|
||
22 | * @package Cake.Test.Fixture
|
||
23 | */
|
||
24 | class JoinABFixture extends CakeTestFixture { |
||
25 | |||
26 | /**
|
||
27 | * name property
|
||
28 | *
|
||
29 | * @var string
|
||
30 | */
|
||
31 | public $name = 'JoinAsJoinB'; |
||
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_b_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_b_id' => 2, 'other' => 'Data for Join A 1 Join B 2', 'created' => '2008-01-03 10:56:33', 'updated' => '2008-01-03 10:56:33'), |
||
54 | array('join_a_id' => 2, 'join_b_id' => 3, 'other' => 'Data for Join A 2 Join B 3', 'created' => '2008-01-03 10:56:34', 'updated' => '2008-01-03 10:56:34'), |
||
55 | array('join_a_id' => 3, 'join_b_id' => 1, 'other' => 'Data for Join A 3 Join B 1', 'created' => '2008-01-03 10:56:35', 'updated' => '2008-01-03 10:56:35') |
||
56 | ); |
||
57 | } |