@@ 3-24 (lines=22) @@ | ||
1 | <?php |
|
2 | ||
3 | class ArticlesCategoryFixture extends CakeTestFixture { |
|
4 | ||
5 | /** |
|
6 | * fields property |
|
7 | * |
|
8 | * @var array |
|
9 | */ |
|
10 | public $fields = array( |
|
11 | 'article_id' => array('type' => 'integer'), |
|
12 | 'category_id' => array('type' => 'integer'), |
|
13 | ); |
|
14 | ||
15 | /** |
|
16 | * records property |
|
17 | * |
|
18 | * @var array |
|
19 | */ |
|
20 | public $records = array( |
|
21 | array('article_id' => 1, 'category_id' => 1), |
|
22 | array('article_id' => 2, 'category_id' => 2), |
|
23 | ); |
|
24 | } |
|
25 |
@@ 3-26 (lines=24) @@ | ||
1 | <?php |
|
2 | ||
3 | class ExternalCommentFixture extends CakeTestFixture { |
|
4 | ||
5 | public $useDbConfig = 'test_external'; |
|
6 | ||
7 | /** |
|
8 | * fields property |
|
9 | * |
|
10 | * @var array |
|
11 | */ |
|
12 | public $fields = array( |
|
13 | 'id' => array('type' => 'integer', 'key' => 'primary'), |
|
14 | 'article_id' => array('type' => 'integer', 'null' => true), |
|
15 | 'comment' => 'text', |
|
16 | ); |
|
17 | ||
18 | /** |
|
19 | * records property |
|
20 | * |
|
21 | * @var array |
|
22 | */ |
|
23 | public $records = array( |
|
24 | array('article_id' => '3', 'comment' => 'External Comment'), |
|
25 | ); |
|
26 | } |
|
27 |