OSDN Git Service

Merge branch 'master' of cake_67@git.sourceforge.jp:/gitroot/trpgtools-onweb/cake...
[trpgtools-onweb/cake-frame.git] / app / plugins / collectionable / tests / fixtures / virtual_fields_post_fixture.php
1 <?php
2
3 class VirtualFieldsPostFixture extends CakeTestFixture {
4         var $name = 'VirtualFieldsPost';
5
6         var $fields = array(
7                 'id' => array('type' => 'integer', 'key' => 'primary'),
8                 'user_id' => array('type' => 'integer', 'key' => 'index'),
9                 'title' => array('type' => 'string', 'length' => 255, 'null' => false),
10                 'body' => 'text',
11         );
12
13         var $records = array(
14                 array('id' => 1, 'title' => 'title1', 'body' => 'article 1', 'user_id' => 1),
15                 array('id' => 2, 'title' => 'title2', 'body' => 'article 2', 'user_id' => 2),
16                 array('id' => 3, 'title' => 'title3', 'body' => 'article 3', 'user_id' => 1),
17                 array('id' => 4, 'title' => 'title4', 'body' => 'article 4', 'user_id' => 3),
18         );
19 }