2007-04-15 07:19:31 +00:00
|
|
|
<?php
|
|
|
|
/* SVN FILE: $Id$ */
|
|
|
|
/**
|
|
|
|
* Short description for file.
|
|
|
|
*
|
|
|
|
* Long description for file
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
|
|
|
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
2008-01-01 22:18:17 +00:00
|
|
|
* Copyright 2005-2008, Cake Software Foundation, Inc.
|
2007-04-15 07:19:31 +00:00
|
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
* Las Vegas, Nevada 89104
|
|
|
|
*
|
|
|
|
* Licensed under The Open Group Test Suite License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
|
|
|
* @filesource
|
2008-01-01 22:18:17 +00:00
|
|
|
* @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
|
2007-04-15 07:19:31 +00:00
|
|
|
* @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
|
|
|
|
* @package cake.tests
|
|
|
|
* @subpackage cake.tests.fixtures
|
|
|
|
* @since CakePHP(tm) v 1.2.0.4667
|
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Short description for class.
|
|
|
|
*
|
|
|
|
* @package cake.tests
|
|
|
|
* @subpackage cake.tests.fixtures
|
|
|
|
*/
|
|
|
|
class AroFixture extends CakeTestFixture {
|
|
|
|
var $name = 'Aro';
|
2007-10-29 00:17:37 +00:00
|
|
|
|
2007-04-15 07:19:31 +00:00
|
|
|
var $fields = array(
|
2008-01-10 08:44:38 +00:00
|
|
|
'id' => array('type' => 'integer', 'key' => 'primary'),
|
2007-04-15 07:19:31 +00:00
|
|
|
'parent_id' => array('type' => 'integer', 'length' => 10, 'null' => true),
|
|
|
|
'model' => array('type' => 'string', 'default' => ''),
|
|
|
|
'foreign_key' => array('type' => 'integer', 'length' => 10, 'null' => true),
|
|
|
|
'alias' => array('type' => 'string', 'default' => ''),
|
|
|
|
'lft' => array('type' => 'integer', 'length' => 10, 'null' => true),
|
|
|
|
'rght' => array('type' => 'integer', 'length' => 10, 'null' => true)
|
|
|
|
);
|
2007-10-29 00:17:37 +00:00
|
|
|
|
2007-04-15 07:19:31 +00:00
|
|
|
var $records = array(
|
2008-05-22 00:56:46 +00:00
|
|
|
array('id' => '1', 'parent_id' => null, 'model' => null, 'foreign_key' => null, 'alias' => 'ROOT', 'lft' => 1, 'rght' => 8),
|
|
|
|
array('id' => '2', 'parent_id' => '1', 'model' => 'Group', 'foreign_key' => '1', 'alias' => 'admins', 'lft' => 2, 'rght' => 7),
|
|
|
|
array('id' => '3', 'parent_id' => '2', 'model' => 'AuthUser', 'foreign_key' => '1', 'alias' => 'Gandalf', 'lft' => 3, 'rght' => 4),
|
|
|
|
array('id' => '4', 'parent_id' => '2', 'model' => 'AuthUser', 'foreign_key' => '2', 'alias' => 'Elrond', 'lft' => 5, 'rght' => 6),
|
|
|
|
|
2007-04-15 07:19:31 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2007-04-04 07:13:33 +00:00
|
|
|
?>
|