Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/croogo/croogo/Acl/tests/Fixture/AclAroFixture.php
<?php
/**
 * Short description for file.
 *
 * PHP 5
 *
 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
 * @package       Cake.Test.Fixture
 * @since         CakePHP(tm) v 1.2.0.4667
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
namespace Croogo\Acl\Test\Fixture;

use
App\TestSuite\Fixture\CakeTestFixture;

class
AclAroFixture extends CakeTestFixture
{

    public
$name = 'Aro';

   
/**
     * fields property
     *
     * @var array
     */
   
public $fields = [
       
'id' => ['type' => 'integer'],
       
'parent_id' => ['type' => 'integer', 'length' => 10, 'null' => true],
       
'model' => ['type' => 'string', 'null' => true],
       
'foreign_key' => ['type' => 'integer', 'length' => 10, 'null' => true],
       
'alias' => ['type' => 'string', 'default' => ''],
       
'lft' => ['type' => 'integer', 'length' => 10, 'null' => true],
       
'rght' => ['type' => 'integer', 'length' => 10, 'null' => true],
       
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
    ];

   
/**
     * records property
     *
     * @var array
     */
   
public $records = [
        [
'parent_id' => null, 'model' => null, 'foreign_key' => null, 'alias' => 'ROOT', 'lft' => 1, 'rght' => 20],
        [
'parent_id' => '1', 'model' => 'Department', 'foreign_key' => '1', 'alias' => '', 'lft' => 2, 'rght' => 3],
        [
'parent_id' => '1', 'model' => 'Department', 'foreign_key' => '2', 'alias' => '', 'lft' => 4, 'rght' => 7],
        [
'parent_id' => '1', 'model' => 'Department', 'foreign_key' => '3', 'alias' => '', 'lft' => 8, 'rght' => 9],
        [
'parent_id' => '1', 'model' => 'Department', 'foreign_key' => '4', 'alias' => '', 'lft' => 10, 'rght' => 11],
        [
'parent_id' => '1', 'model' => 'Department', 'foreign_key' => '5', 'alias' => '', 'lft' => 12, 'rght' => 13],
        [
'parent_id' => '3', 'model' => 'Employee', 'foreign_key' => '1', 'alias' => '', 'lft' => 5, 'rght' => 6],
        [
'parent_id' => '1', 'model' => 'Employee', 'foreign_key' => '2', 'alias' => '', 'lft' => 14, 'rght' => 15],
        [
'parent_id' => '1', 'model' => 'Employee', 'foreign_key' => '3', 'alias' => '', 'lft' => 16, 'rght' => 17],
        [
'parent_id' => '1', 'model' => 'Employee', 'foreign_key' => '4', 'alias' => '', 'lft' => 18, 'rght' => 19],
    ];
}