mirror of
https://github.com/brmlab/brmsklad.git
synced 2025-08-05 23:53:38 +02:00
Upgrade CakePHP from 2.2.5 to 2.9.5
This commit is contained in:
parent
5a580df460
commit
235a541597
793 changed files with 60746 additions and 23753 deletions
|
@ -4,19 +4,18 @@
|
|||
*
|
||||
* Test the Acl Behavior
|
||||
*
|
||||
* PHP 5
|
||||
*
|
||||
* CakePHP : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright 2005-2012, Cake Software Foundation, Inc.
|
||||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
|
||||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP Project
|
||||
* @package Cake.Test.Case.Model.Behavior
|
||||
* @since CakePHP v 1.2.0.4487
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
App::uses('AclBehavior', 'Model/Behavior');
|
||||
|
@ -25,7 +24,6 @@ App::uses('Aro', 'Model');
|
|||
App::uses('AclNode', 'Model');
|
||||
App::uses('DbAcl', 'Model');
|
||||
|
||||
|
||||
/**
|
||||
* Test Person class - self joined model
|
||||
*
|
||||
|
@ -33,13 +31,6 @@ App::uses('DbAcl', 'Model');
|
|||
*/
|
||||
class AclPerson extends CakeTestModel {
|
||||
|
||||
/**
|
||||
* name property
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'AclPerson';
|
||||
|
||||
/**
|
||||
* useTable property
|
||||
*
|
||||
|
@ -94,9 +85,8 @@ class AclPerson extends CakeTestModel {
|
|||
}
|
||||
if (!$motherId) {
|
||||
return null;
|
||||
} else {
|
||||
return array('AclPerson' => array('id' => $motherId));
|
||||
}
|
||||
return array('AclPerson' => array('id' => $motherId));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -132,6 +122,7 @@ class AclUser extends CakeTestModel {
|
|||
/**
|
||||
* parentNode
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
public function parentNode() {
|
||||
return null;
|
||||
|
@ -170,6 +161,7 @@ class AclPost extends CakeTestModel {
|
|||
/**
|
||||
* parentNode
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
public function parentNode() {
|
||||
return null;
|
||||
|
@ -234,6 +226,7 @@ class AclBehaviorTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testSetup() {
|
||||
parent::setUp();
|
||||
$User = new AclUser();
|
||||
$this->assertTrue(isset($User->Behaviors->Acl->settings['User']));
|
||||
$this->assertEquals('requester', $User->Behaviors->Acl->settings['User']['type']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue