more clear test setup

This commit is contained in:
0x20h 2012-01-13 23:51:18 +01:00
parent 1f31432a64
commit c6624faf76

View file

@ -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'));