Mercurial > hg > Members > shoshi > webvirt
comparison cake/tests/fixtures/group_update_all_fixture.php @ 0:261e66bd5a0c
hg init
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Jul 2011 21:08:31 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:261e66bd5a0c |
---|---|
1 <?php | |
2 /** | |
3 * Short description for file. | |
4 * | |
5 * PHP versions 4 and 5 | |
6 * | |
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> | |
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
9 * | |
10 * Licensed under The Open Group Test Suite License | |
11 * Redistributions of files must retain the above copyright notice. | |
12 * | |
13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests | |
15 * @package cake | |
16 * @subpackage cake.tests.fixtures | |
17 * @since CakePHP(tm) v 1.2.0.4667 | |
18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License | |
19 */ | |
20 | |
21 /** | |
22 * Short description for class. | |
23 * | |
24 * @package cake | |
25 * @subpackage cake.tests.fixtures | |
26 */ | |
27 class GroupUpdateAllFixture extends CakeTestFixture { | |
28 var $name = 'GroupUpdateAll'; | |
29 var $table = 'group_update_all'; | |
30 | |
31 var $fields = array( | |
32 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'key' => 'primary'), | |
33 'name' => array('type'=>'string', 'null' => false, 'length' => 29), | |
34 'code' => array('type'=>'integer', 'null' => false, 'length' => 4), | |
35 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) | |
36 ); | |
37 var $records = array( | |
38 array( | |
39 'id' => 1, | |
40 'name' => 'group one', | |
41 'code' => 120), | |
42 array( | |
43 'id' => 2, | |
44 'name' => 'group two', | |
45 'code' => 125), | |
46 array( | |
47 'id' => 3, | |
48 'name' => 'group three', | |
49 'code' => 130), | |
50 array( | |
51 'id' => 4, | |
52 'name' => 'group four', | |
53 'code' => 135) | |
54 ); | |
55 } |