Skip to content

Commit

Permalink
more clear test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
0x20h committed Jan 13, 2012
1 parent 1f31432 commit c6624fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Cake/Test/Case/Controller/Component/Acl/PhpAclTest.php
Expand Up @@ -37,7 +37,6 @@ public function setUp() {
'config' => CAKE . 'Test' . DS . 'test_app' . DS . 'Config'. DS . 'acl.php',
),
));
$this->Acl->adapter($this->PhpAcl);
}


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

0 comments on commit c6624fa

Please sign in to comment.