mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
more clear test setup
This commit is contained in:
parent
1f31432a64
commit
c6624faf76
1 changed files with 1 additions and 2 deletions
|
@ -37,7 +37,6 @@ class PhpAclTest extends CakeTestCase {
|
|||
'config' => CAKE . 'Test' . DS . 'test_app' . DS . 'Config'. DS . 'acl.php',
|
||||
),
|
||||
));
|
||||
$this->Acl->adapter($this->PhpAcl);
|
||||
}
|
||||
|
||||
|
||||
|
@ -300,7 +299,7 @@ class PhpAclTest extends CakeTestCase {
|
|||
public function testPolicy() {
|
||||
// allow by default
|
||||
$this->Acl->settings['adapter']['policy'] = PhpAcl::ALLOW;
|
||||
$this->PhpAcl->initialize($this->Acl);
|
||||
$this->Acl->adapter($this->PhpAcl);
|
||||
|
||||
$this->assertTrue($this->Acl->check('Role/sales', 'foo'));
|
||||
$this->assertTrue($this->Acl->check('Role/sales', 'controllers/bla/create'));
|
||||
|
|
Loading…
Add table
Reference in a new issue