summaryrefslogtreecommitdiffstats
path: root/Tests/Acl/Domain
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Acl/Domain')
-rw-r--r--Tests/Acl/Domain/AclTest.php2
-rw-r--r--Tests/Acl/Domain/PermissionGrantingStrategyTest.php4
-rw-r--r--Tests/Acl/Domain/SecurityIdentityRetrievalStrategyTest.php2
-rw-r--r--Tests/Acl/Domain/UserSecurityIdentityTest.php2
4 files changed, 4 insertions, 6 deletions
diff --git a/Tests/Acl/Domain/AclTest.php b/Tests/Acl/Domain/AclTest.php
index b6f3d79..4b67e62 100644
--- a/Tests/Acl/Domain/AclTest.php
+++ b/Tests/Acl/Domain/AclTest.php
@@ -433,7 +433,7 @@ class AclTest extends \PHPUnit_Framework_TestCase
* @expectedException \InvalidArgumentException
* @dataProvider getUpdateFieldAuditingTests
*/
- public function testUpdateFieldAuditingthrowsExceptionOnInvalidField($type)
+ public function testUpdateFieldAuditingThrowsExceptionOnInvalidField($type)
{
$acl = $this->getAcl();
$acl->{'update'.$type.'Auditing'}(0, 'foo', true, true);
diff --git a/Tests/Acl/Domain/PermissionGrantingStrategyTest.php b/Tests/Acl/Domain/PermissionGrantingStrategyTest.php
index 67c9f3f..d200d2b 100644
--- a/Tests/Acl/Domain/PermissionGrantingStrategyTest.php
+++ b/Tests/Acl/Domain/PermissionGrantingStrategyTest.php
@@ -31,7 +31,7 @@ class PermissionGrantingStrategyTest extends \PHPUnit_Framework_TestCase
$this->assertFalse($strategy->isGranted($acl, array(1), array($sid)));
}
- public function testIsGrantedFallsbackToClassAcesIfNoApplicableObjectAceWasFound()
+ public function testIsGrantedFallsBackToClassAcesIfNoApplicableObjectAceWasFound()
{
$strategy = new PermissionGrantingStrategy();
$acl = $this->getAcl($strategy);
@@ -73,7 +73,7 @@ class PermissionGrantingStrategyTest extends \PHPUnit_Framework_TestCase
}
/**
- * @expectedException Symfony\Component\Security\Acl\Exception\NoAceFoundException
+ * @expectedException \Symfony\Component\Security\Acl\Exception\NoAceFoundException
*/
public function testIsGrantedReturnsExceptionIfNoAceIsFound()
{
diff --git a/Tests/Acl/Domain/SecurityIdentityRetrievalStrategyTest.php b/Tests/Acl/Domain/SecurityIdentityRetrievalStrategyTest.php
index 2083728..f649653 100644
--- a/Tests/Acl/Domain/SecurityIdentityRetrievalStrategyTest.php
+++ b/Tests/Acl/Domain/SecurityIdentityRetrievalStrategyTest.php
@@ -116,7 +116,6 @@ class SecurityIdentityRetrievalStrategyTest extends \PHPUnit_Framework_TestCase
->will($this->returnValue($username))
;
-
return $account;
}
@@ -177,7 +176,6 @@ class SecurityIdentityRetrievalStrategyTest extends \PHPUnit_Framework_TestCase
;
}
-
return new SecurityIdentityRetrievalStrategy($roleHierarchy, $trustResolver);
}
}
diff --git a/Tests/Acl/Domain/UserSecurityIdentityTest.php b/Tests/Acl/Domain/UserSecurityIdentityTest.php
index 9650803..1d6a3c5 100644
--- a/Tests/Acl/Domain/UserSecurityIdentityTest.php
+++ b/Tests/Acl/Domain/UserSecurityIdentityTest.php
@@ -25,7 +25,7 @@ class UserSecurityIdentityTest extends \PHPUnit_Framework_TestCase
}
// Test that constructor never changes the type, even for proxies
- public function testContructorWithProxy()
+ public function testConstructorWithProxy()
{
$id = new UserSecurityIdentity('foo', 'Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Tests\Acl\Domain\Foo');