Skip to content
Permalink
Browse files

more clear test setup

  • Loading branch information...
0x20h committed Jan 13, 2012
1 parent 1f31432 commit c6624faf76ca09e4558a1b999ef74f59d2788271
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/Cake/Test/Case/Controller/Component/Acl/PhpAclTest.php
@@ -37,7 +37,6 @@ public function setUp() {
'config' => CAKE . 'Test' . DS . 'test_app' . DS . 'Config'. DS . 'acl.php',
),
));
$this->Acl->adapter($this->PhpAcl);
}
@@ -300,7 +299,7 @@ public function testAroDeclarationContainsCycles() {
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'));

0 comments on commit c6624fa

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