Skip to content
Permalink
Browse files

Adding tests to AclShell::view()

  • Loading branch information...
markstory committed Aug 7, 2009
1 parent 2cc8ae6 commit c305b7a410978850f265d62591565f5352630608
Showing with 16 additions and 0 deletions.
  1. +16 −0 cake/tests/cases/console/libs/acl.test.php
@@ -128,6 +128,21 @@ function testViewWithModelForeignKeyOutput() {
$this->Task->view();
}
/**
* test view with an argument
*
* @return void
**/
function testViewWithArgument() {
$this->Task->args = array('aro', 'admins');
$this->Task->expectAt(0, 'out', array('Aro tree:'));
$this->Task->expectAt(1, 'out', array(' [2] admins'));
$this->Task->expectAt(2, 'out', array(' [3] Gandalf'));
$this->Task->expectAt(3, 'out', array(' [4] Elrond'));
$this->Task->view();
}
/**
* test the method that splits model.foreign key. and that it returns an array.
*
@@ -297,5 +312,6 @@ function testGetPath() {
$this->Task->expectAt(3, 'out', array(' [4] Elrond'));
$this->Task->getPath();
}
}
?>

0 comments on commit c305b7a

Please sign in to comment.
You can’t perform that action at this time.