mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding tests to AclShell::view()
This commit is contained in:
parent
2cc8ae631e
commit
c305b7a410
1 changed files with 16 additions and 0 deletions
|
@ -128,6 +128,21 @@ class AclShellTest extends CakeTestCase {
|
|||
|
||||
$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 @@ class AclShellTest extends CakeTestCase {
|
|||
$this->Task->expectAt(3, 'out', array(' [4] Elrond'));
|
||||
$this->Task->getPath();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
Loading…
Reference in a new issue