~tsep-dev/tsep/0.9-beta

« back to all changes in this revision

Viewing changes to branches/symfony/cake/tests/fixtures/aco_fixture.php

  • Committer: geoffreyfishing
  • Date: 2011-01-11 23:46:12 UTC
  • Revision ID: svn-v4:ae0de26e-ed09-4cbe-9a20-e40b4c60ac6c::125
Created a symfony branch for future migration to symfony

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 1.2.0.4667
 
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 AcoFixture extends CakeTestFixture {
 
28
 
 
29
/**
 
30
 * name property
 
31
 *
 
32
 * @var string 'Aco'
 
33
 * @access public
 
34
 */
 
35
        var $name = 'Aco';
 
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
                'parent_id'     => array('type' => 'integer', 'length' => 10, 'null' => true),
 
46
                'model'         => array('type' => 'string', 'null' => true),
 
47
                'foreign_key' => array('type' => 'integer', 'length' => 10, 'null' => true),
 
48
                'alias' => array('type' => 'string', 'default' => ''),
 
49
                'lft' => array('type' => 'integer', 'length' => 10, 'null' => true),
 
50
                'rght' => array('type' => 'integer', 'length' => 10, 'null' => true)
 
51
        );
 
52
 
 
53
/**
 
54
 * records property
 
55
 *
 
56
 * @var array
 
57
 * @access public
 
58
 */
 
59
        var $records = array(
 
60
                array('parent_id' => null, 'model' => null, 'foreign_key' => null, 'alias' => 'ROOT', 'lft' => 1,  'rght' => 24),
 
61
                array('parent_id' => 1, 'model' => null, 'foreign_key' => null, 'alias' => 'Controller1', 'lft' => 2,  'rght' => 9),
 
62
                array('parent_id' => 2, 'model' => null, 'foreign_key' => null, 'alias' => 'action1', 'lft' => 3,  'rght' => 6),
 
63
                array('parent_id' => 3, 'model' => null, 'foreign_key' => null, 'alias' => 'record1', 'lft' => 4,  'rght' => 5),
 
64
                array('parent_id' => 2, 'model' => null, 'foreign_key' => null, 'alias' => 'action2', 'lft' => 7,  'rght' => 8),
 
65
                array('parent_id' => 1, 'model' => null, 'foreign_key' => null, 'alias' => 'Controller2','lft' => 10, 'rght' => 17),
 
66
                array('parent_id' => 6, 'model' => null, 'foreign_key' => null, 'alias' => 'action1', 'lft' => 11, 'rght' => 14),
 
67
                array('parent_id' => 7, 'model' => null, 'foreign_key' => null, 'alias' => 'record1', 'lft' => 12, 'rght' => 13),
 
68
                array('parent_id' => 6, 'model' => null, 'foreign_key' => null, 'alias' => 'action2', 'lft' => 15, 'rght' => 16),
 
69
                array('parent_id' => 1, 'model' => null, 'foreign_key' => null, 'alias' => 'Users', 'lft' => 18, 'rght' => 23),
 
70
                array('parent_id' => 9, 'model' => null, 'foreign_key' => null, 'alias' => 'Users', 'lft' => 19, 'rght' => 22),
 
71
                array('parent_id' => 10, 'model' => null, 'foreign_key' => null, 'alias' => 'view', 'lft' => 20, 'rght' => 21),
 
72
        );
 
73
}