From 26c8640fef83f0c1e067987300574766d4be386a Mon Sep 17 00:00:00 2001 From: arekkas Date: Mon, 13 Jan 2014 15:59:40 +0100 Subject: [PATCH] Removed Rbac::getStrategy, added Rbac::getTraversalStrategy --- src/Rbac/Rbac.php | 2 +- tests/RbacTest/RbacTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Rbac/Rbac.php b/src/Rbac/Rbac.php index 887b66a..9509712 100644 --- a/src/Rbac/Rbac.php +++ b/src/Rbac/Rbac.php @@ -72,7 +72,7 @@ public function isGranted($roles, $permission) * * @return TraversalStrategyInterface */ - public function getStrategy() + public function getTraversalStrategy() { return $this->traversalStrategy; } diff --git a/tests/RbacTest/RbacTest.php b/tests/RbacTest/RbacTest.php index 2cd3def..7105508 100644 --- a/tests/RbacTest/RbacTest.php +++ b/tests/RbacTest/RbacTest.php @@ -138,11 +138,11 @@ public function testReturnFalseIfNoRoleHasPermission() $this->assertFalse($rbac->isGranted($roles, 'permission')); } - public function testGetStrategy() + public function testGetTraversalStrategy() { $customStrategy = $this->getMock('Rbac\Traversal\Strategy\TraversalStrategyInterface'); $rbac = new Rbac($customStrategy); - $this->assertSame($customStrategy, $rbac->getStrategy()); + $this->assertSame($customStrategy, $rbac->getTraversalStrategy()); } }