comparison cake/tests/fixtures/number_tree_two_fixture.php @ 0:261e66bd5a0c

hg init
author Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
date Sun, 24 Jul 2011 21:08:31 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:261e66bd5a0c
1 <?php
2 /**
3 * Tree behavior class.
4 *
5 * Enables a model object to act as a node-based tree.
6 *
7 * PHP versions 4 and 5
8 *
9 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
11 *
12 * Licensed under The Open Group Test Suite License
13 * Redistributions of files must retain the above copyright notice.
14 *
15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
16 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
17 * @package cake
18 * @subpackage cake.tests.fixtures
19 * @since CakePHP(tm) v 1.2.0.5331
20 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
21 */
22
23 /**
24 * Number Tree Test Fixture
25 *
26 * Generates a tree of data for use testing the tree behavior
27 *
28 * @package cake
29 * @subpackage cake.tests.fixtures
30 */
31 class NumberTreeTwoFixture extends CakeTestFixture {
32
33 /**
34 * name property
35 *
36 * @var string 'NumberTree'
37 * @access public
38 */
39 var $name = 'NumberTreeTwo';
40
41 /**
42 * fields property
43 *
44 * @var array
45 * @access public
46 */
47 var $fields = array(
48 'id' => array('type' => 'integer','key' => 'primary'),
49 'name' => array('type' => 'string','null' => false),
50 'number_tree_id' => array('type' => 'integer', 'null' => false),
51 'parent_id' => 'integer',
52 'lft' => array('type' => 'integer','null' => false),
53 'rght' => array('type' => 'integer','null' => false)
54 );
55 }