Skip to content

Commit

Permalink
Removing more dead code in the Auth test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 4, 2011
1 parent ffb6c29 commit af934e3
Showing 1 changed file with 1 addition and 54 deletions.
55 changes: 1 addition & 54 deletions cake/tests/cases/libs/controller/components/auth.test.php
Expand Up @@ -73,42 +73,6 @@ class AuthUser extends CakeTestModel {
*/
public $useDbConfig = 'test';

/**
* parentNode method
*
* @access public
* @return void
*/
function parentNode() {
return true;
}

/**
* bindNode method
*
* @param mixed $object
* @access public
* @return void
*/
function bindNode($object) {
return 'Roles/Admin';
}

/**
* isAuthorized method
*
* @param mixed $user
* @param mixed $controller
* @param mixed $action
* @access public
* @return void
*/
function isAuthorized($user, $controller = null, $action = null) {
if (!empty($user)) {
return true;
}
return false;
}
}

/**
Expand Down Expand Up @@ -244,26 +208,9 @@ function redirect($url, $status = null, $exit = true) {
* @return void
*/
function isAuthorized() {
if (isset($this->request['testControllerAuth'])) {
return false;
}
return true;
}

/**
* Mock delete method
*
* @param mixed $url
* @param mixed $status
* @param mixed $exit
* @access public
* @return void
*/
function delete($id = null) {
if ($this->TestAuth->testStop !== true && $id !== null) {
echo 'Deleted Record: ' . var_export($id, true);
}
}

}

/**
Expand Down

0 comments on commit af934e3

Please sign in to comment.