Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #630 from shama/patch-typos

Typos in Test Cases
  • Loading branch information...
commit d80b1ef7f667e3616b9f46e594f5a2a5a8496053 2 parents 210ce4d + eb059d3
@lorenzo lorenzo authored
View
6 lib/Cake/Test/Case/Controller/Component/Acl/DbAclTest.php
@@ -343,14 +343,14 @@ public function testCheckInvalidPermission() {
* @return void
*/
public function testCheckMissingPermission() {
- $this->Acl->check('users', 'NonExistant', 'read');
+ $this->Acl->check('users', 'NonExistent', 'read');
}
/**
* testDbAclCascadingDeny function
*
* Setup the acl permissions such that Bobs inherits from admin.
- * deny Admin delete access to a specific resource, check the permisssions are inherited.
+ * deny Admin delete access to a specific resource, check the permissions are inherited.
*
* @return void
*/
@@ -477,7 +477,7 @@ public function testRevoke() {
/**
* debug function - to help editing/creating test cases for the ACL component
*
- * To check the overal ACL status at any time call $this->__debug();
+ * To check the overall ACL status at any time call $this->__debug();
* Generates a list of the current aro and aco structures and a grid dump of the permissions that are defined
* Only designed to work with the db based ACL
*
View
10 lib/Cake/Test/Case/Model/models.php
@@ -2537,15 +2537,15 @@ class NumberTree extends CakeTestModel {
* @param mixed $currentLevel
* @param mixed $parent_id
* @param string $prefix
- * @param bool $hierachial
+ * @param bool $hierarchal
* @return void
*/
- public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = null, $parentId = null, $prefix = '1', $hierachial = true) {
+ public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = null, $parentId = null, $prefix = '1', $hierarchal = true) {
if (!$parentId) {
$db = ConnectionManager::getDataSource($this->useDbConfig);
$db->truncate($this->table);
$this->save(array($this->name => array('name' => '1. Root')));
- $this->initialize($levelLimit, $childLimit, 1, $this->id, '1', $hierachial);
+ $this->initialize($levelLimit, $childLimit, 1, $this->id, '1', $hierarchal);
$this->create(array());
}
@@ -2558,7 +2558,7 @@ public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = nul
$data = array($this->name => array('name' => $name));
$this->create($data);
- if ($hierachial) {
+ if ($hierarchal) {
if ($this->name == 'UnconventionalTree') {
$data[$this->name]['join'] = $parentId;
} else {
@@ -2566,7 +2566,7 @@ public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = nul
}
}
$this->save($data);
- $this->initialize($levelLimit, $childLimit, $currentLevel + 1, $this->id, $name, $hierachial);
+ $this->initialize($levelLimit, $childLimit, $currentLevel + 1, $this->id, $name, $hierarchal);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.