From a38cac801f7fd24bb149bd48447d32f2abd4ea92 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 2 Oct 2012 22:55:09 -0400 Subject: [PATCH] Fix PhpAcl tests. --- lib/Cake/Controller/Component/Acl/PhpAcl.php | 10 +++------- lib/Cake/Controller/Component/AclComponent.php | 3 ++- .../TestCase/Controller/Component/Acl/PhpAclTest.php | 11 +++-------- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/lib/Cake/Controller/Component/Acl/PhpAcl.php b/lib/Cake/Controller/Component/Acl/PhpAcl.php index c65e09f7879..4623204ca64 100644 --- a/lib/Cake/Controller/Component/Acl/PhpAcl.php +++ b/lib/Cake/Controller/Component/Acl/PhpAcl.php @@ -1,9 +1,5 @@ setExpectedException( - 'AclException', + 'Cake\Error\AclException', '"roles" section not found in configuration' ); $config = array('aco' => array('allow' => array('foo' => ''))); @@ -267,7 +262,7 @@ public function testInvalidConfigWithAroMissing() { public function testInvalidConfigWithAcosMissing() { $this->setExpectedException( - 'AclException', + 'Cake\Error\AclException', 'Neither "allow" nor "deny" rules were provided in configuration.' );