Mercurial > hg > Members > shoshi > webvirt
comparison cake/tests/fixtures/test_plugin_comment_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 7660 | |
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 TestPluginCommentFixture extends CakeTestFixture { | |
28 | |
29 /** | |
30 * name property | |
31 * | |
32 * @var string 'Comment' | |
33 * @access public | |
34 */ | |
35 var $name = 'TestPluginComment'; | |
36 | |
37 /** | |
38 * fields property | |
39 * | |
40 * @var array | |
41 * @access public | |
42 */ | |
43 var $fields = array( | |
44 'id' => array('type' => 'integer', 'key' => 'primary'), | |
45 'article_id' => array('type' => 'integer', 'null'=>false), | |
46 'user_id' => array('type' => 'integer', 'null'=>false), | |
47 'comment' => 'text', | |
48 'published' => array('type' => 'string', 'length' => 1, 'default' => 'N'), | |
49 'created' => 'datetime', | |
50 'updated' => 'datetime' | |
51 ); | |
52 | |
53 /** | |
54 * records property | |
55 * | |
56 * @var array | |
57 * @access public | |
58 */ | |
59 var $records = array( | |
60 array('id' => 1, 'article_id' => 1, 'user_id' => 2, 'comment' => 'First Comment for First Plugin Article', 'published' => 'Y', 'created' => '2008-09-24 10:45:23', 'updated' => '2008-09-24 10:47:31'), | |
61 array('id' => 2, 'article_id' => 1, 'user_id' => 4, 'comment' => 'Second Comment for First Plugin Article', 'published' => 'Y', 'created' => '2008-09-24 10:47:23', 'updated' => '2008-09-24 10:49:31'), | |
62 array('id' => 3, 'article_id' => 1, 'user_id' => 1, 'comment' => 'Third Comment for First Plugin Article', 'published' => 'Y', 'created' => '2008-09-24 10:49:23', 'updated' => '2008-09-24 10:51:31'), | |
63 array('id' => 4, 'article_id' => 1, 'user_id' => 1, 'comment' => 'Fourth Comment for First Plugin Article', 'published' => 'N', 'created' => '2008-09-24 10:51:23', 'updated' => '2008-09-24 10:53:31'), | |
64 array('id' => 5, 'article_id' => 2, 'user_id' => 1, 'comment' => 'First Comment for Second Plugin Article', 'published' => 'Y', 'created' => '2008-09-24 10:53:23', 'updated' => '2008-09-24 10:55:31'), | |
65 array('id' => 6, 'article_id' => 2, 'user_id' => 2, 'comment' => 'Second Comment for Second Plugin Article', 'published' => 'Y', 'created' => '2008-09-24 10:55:23', 'updated' => '2008-09-24 10:57:31') | |
66 ); | |
67 } |