3
* Tree behavior class test fixture.
5
* Enables a model object to act as a node-based tree.
9
* CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
10
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
12
* Licensed under The Open Group Test Suite License
13
* Redistributions of files must retain the above copyright notice.
15
* @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
16
* @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
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
24
* Flag Tree Test Fixture
26
* Like Number Tree, but uses a flag for testing scope parameters
29
* @subpackage cake.tests.fixtures
31
class FlagTreeFixture extends CakeTestFixture {
36
* @var string 'FlagTree'
39
var $name = 'FlagTree';
48
'id' => array('type' => 'integer','key' => 'primary'),
49
'name' => array('type' => 'string','null' => false),
50
'parent_id' => 'integer',
51
'lft' => array('type' => 'integer','null' => false),
52
'rght' => array('type' => 'integer','null' => false),
53
'flag' => array('type' => 'integer','null' => false, 'length' => 1, 'default' => 0)