Skip to content
This repository

Typos in Test Cases #630

Merged
merged 1 commit into from about 2 years ago

2 participants

Kyle Robinson Young José Lorenzo Rodríguez
Kyle Robinson Young
shama commented

Found a few typos in the test cases.

José Lorenzo Rodríguez lorenzo merged commit d80b1ef into from
José Lorenzo Rodríguez lorenzo closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 27, 2012
Kyle Robinson Young shama Fix typos in test cases eb059d3
This page is out of date. Refresh to see the latest.
6 lib/Cake/Test/Case/Controller/Component/Acl/DbAclTest.php
@@ -343,14 +343,14 @@ public function testCheckInvalidPermission() {
343 343 * @return void
344 344 */
345 345 public function testCheckMissingPermission() {
346   - $this->Acl->check('users', 'NonExistant', 'read');
  346 + $this->Acl->check('users', 'NonExistent', 'read');
347 347 }
348 348
349 349 /**
350 350 * testDbAclCascadingDeny function
351 351 *
352 352 * Setup the acl permissions such that Bobs inherits from admin.
353   - * deny Admin delete access to a specific resource, check the permisssions are inherited.
  353 + * deny Admin delete access to a specific resource, check the permissions are inherited.
354 354 *
355 355 * @return void
356 356 */
@@ -477,7 +477,7 @@ public function testRevoke() {
477 477 /**
478 478 * debug function - to help editing/creating test cases for the ACL component
479 479 *
480   - * To check the overal ACL status at any time call $this->__debug();
  480 + * To check the overall ACL status at any time call $this->__debug();
481 481 * Generates a list of the current aro and aco structures and a grid dump of the permissions that are defined
482 482 * Only designed to work with the db based ACL
483 483 *
10 lib/Cake/Test/Case/Model/models.php
@@ -2537,15 +2537,15 @@ class NumberTree extends CakeTestModel {
2537 2537 * @param mixed $currentLevel
2538 2538 * @param mixed $parent_id
2539 2539 * @param string $prefix
2540   - * @param bool $hierachial
  2540 + * @param bool $hierarchal
2541 2541 * @return void
2542 2542 */
2543   - public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = null, $parentId = null, $prefix = '1', $hierachial = true) {
  2543 + public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = null, $parentId = null, $prefix = '1', $hierarchal = true) {
2544 2544 if (!$parentId) {
2545 2545 $db = ConnectionManager::getDataSource($this->useDbConfig);
2546 2546 $db->truncate($this->table);
2547 2547 $this->save(array($this->name => array('name' => '1. Root')));
2548   - $this->initialize($levelLimit, $childLimit, 1, $this->id, '1', $hierachial);
  2548 + $this->initialize($levelLimit, $childLimit, 1, $this->id, '1', $hierarchal);
2549 2549 $this->create(array());
2550 2550 }
2551 2551
@@ -2558,7 +2558,7 @@ public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = nul
2558 2558 $data = array($this->name => array('name' => $name));
2559 2559 $this->create($data);
2560 2560
2561   - if ($hierachial) {
  2561 + if ($hierarchal) {
2562 2562 if ($this->name == 'UnconventionalTree') {
2563 2563 $data[$this->name]['join'] = $parentId;
2564 2564 } else {
@@ -2566,7 +2566,7 @@ public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = nul
2566 2566 }
2567 2567 }
2568 2568 $this->save($data);
2569   - $this->initialize($levelLimit, $childLimit, $currentLevel + 1, $this->id, $name, $hierachial);
  2569 + $this->initialize($levelLimit, $childLimit, $currentLevel + 1, $this->id, $name, $hierarchal);
2570 2570 }
2571 2571 }
2572 2572

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.