~tsep-dev/tsep/0.9-beta

« back to all changes in this revision

Viewing changes to branches/symfony/cake/tests/fixtures/unconventional_tree_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
 * Unconventional Tree behavior class test fixture.
 
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.7879
 
18
 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
 
19
 */
 
20
 
 
21
/**
 
22
 * UnconventionalTreeFixture class
 
23
 *
 
24
 * Like Number tree, but doesn't use the default values for lft and rght or parent_id
 
25
 *
 
26
 * @uses          CakeTestFixture
 
27
 * @package       cake
 
28
 * @subpackage    cake.tests.fixtures
 
29
 */
 
30
class UnconventionalTreeFixture extends CakeTestFixture {
 
31
 
 
32
/**
 
33
 * name property
 
34
 *
 
35
 * @var string 'FlagTree'
 
36
 * @access public
 
37
 */
 
38
        var $name = 'UnconventionalTree';
 
39
 
 
40
/**
 
41
 * fields property
 
42
 *
 
43
 * @var array
 
44
 * @access public
 
45
 */
 
46
        var $fields = array(
 
47
                'id'    => array('type' => 'integer','key' => 'primary'),
 
48
                'name'  => array('type' => 'string','null' => false),
 
49
                'join' => 'integer',
 
50
                'left'  => array('type' => 'integer','null' => false),
 
51
                'right' => array('type' => 'integer','null' => false),
 
52
        );
 
53
}