pictcode / lib / Cake / Test / Fixture / AdFixture.php @ 0b1b8047
履歴 | 表示 | アノテート | ダウンロード (1.815 KB)
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* Short description for ad_fixture.php
|
4 |
*
|
5 |
* Long description for ad_fixture.php
|
6 |
*
|
7 |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
8 |
*
|
9 |
* Licensed under The MIT License
|
10 |
* For full copyright and license information, please see the LICENSE.txt
|
11 |
* Redistributions of files must retain the above copyright notice.
|
12 |
*
|
13 |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
14 |
* @link http://www.cakephp.org
|
15 |
* @package Cake.Test.Fixture
|
16 |
* @since 1.2
|
17 |
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
18 |
*/
|
19 |
|
20 |
/**
|
21 |
* AdFixture class
|
22 |
*
|
23 |
* @package Cake.Test.Fixture
|
24 |
*/
|
25 |
class AdFixture extends CakeTestFixture { |
26 |
|
27 |
/**
|
28 |
* fields property
|
29 |
*
|
30 |
* @var array
|
31 |
*/
|
32 |
public $fields = array( |
33 |
'id' => array('type' => 'integer', 'key' => 'primary'), |
34 |
'campaign_id' => array('type' => 'integer'), |
35 |
'parent_id' => array('type' => 'integer'), |
36 |
'lft' => array('type' => 'integer'), |
37 |
'rght' => array('type' => 'integer'), |
38 |
'name' => array('type' => 'string', 'length' => 255, 'null' => false) |
39 |
); |
40 |
|
41 |
/**
|
42 |
* records property
|
43 |
*
|
44 |
* @var array
|
45 |
*/
|
46 |
public $records = array( |
47 |
array('parent_id' => null, 'lft' => 1, 'rght' => 2, 'campaign_id' => 1, 'name' => 'Nordover'), |
48 |
array('parent_id' => null, 'lft' => 3, 'rght' => 4, 'campaign_id' => 1, 'name' => 'Statbergen'), |
49 |
array('parent_id' => null, 'lft' => 5, 'rght' => 6, 'campaign_id' => 1, 'name' => 'Feroy'), |
50 |
array('parent_id' => null, 'lft' => 7, 'rght' => 12, 'campaign_id' => 2, 'name' => 'Newcastle'), |
51 |
array('parent_id' => null, 'lft' => 8, 'rght' => 9, 'campaign_id' => 2, 'name' => 'Dublin'), |
52 |
array('parent_id' => null, 'lft' => 10, 'rght' => 11, 'campaign_id' => 2, 'name' => 'Alborg'), |
53 |
array('parent_id' => null, 'lft' => 13, 'rght' => 14, 'campaign_id' => 3, 'name' => 'New York') |
54 |
); |
55 |
} |