pictcode / app / Plugin / Recaptcha / Test / Fixture / ArticleFixture.php @ master
履歴 | 表示 | アノテート | ダウンロード (1016 Bytes)
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* Copyright 2009-2014, Cake Development Corporation (http://cakedc.com)
|
4 |
*
|
5 |
* Licensed under The MIT License
|
6 |
* Redistributions of files must retain the above copyright notice.
|
7 |
*
|
8 |
* @copyright Copyright 2009-2014, Cake Development Corporation (http://cakedc.com)
|
9 |
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
10 |
*/
|
11 |
|
12 |
/**
|
13 |
* Article Fixture
|
14 |
*
|
15 |
* @package recaptcha
|
16 |
* @subpackage recaptcha.tests.fixtures
|
17 |
*/
|
18 |
class ArticleFixture extends CakeTestFixture { |
19 |
|
20 |
/**
|
21 |
* name property
|
22 |
*
|
23 |
* @var string
|
24 |
*/
|
25 |
public $name = 'Article'; |
26 |
|
27 |
/**
|
28 |
* fields property
|
29 |
*
|
30 |
* @var array
|
31 |
*/
|
32 |
public $fields = array( |
33 |
'id' => array('type' => 'integer', 'key' => 'primary'), |
34 |
'title' => array('type' => 'string', 'null' => false), |
35 |
'comments' => array('type' => 'integer', 'null' => false, 'default' => '0')); |
36 |
|
37 |
/**
|
38 |
* records property
|
39 |
*
|
40 |
* @var array
|
41 |
*/
|
42 |
public $records = array( |
43 |
array('title' => 'First Article', 'comments' => 2), |
44 |
array('title' => 'Second Article', 'comments' => 0)); |
45 |
} |