Skip to content

Commit 861b9fb

Browse files
committed
Merge branch '3.4' into 4.0
* 3.4: fixed wrong merge Tweak message to be Flex friendly [Routing] fixed tests Fixing wrong class_exists on interface Preserve percent-encoding in URLs when performing redirects in the UrlMatcher [Console] Fix a bug when passing a letter that could be an alias add missing validation options to XSD file Take advantage of AnnotationRegistry::registerUniqueLoader [DI] Optimize Container::get() for perf fix merge Fix tests Refactoring tests.
2 parents f687527 + 970d907 commit 861b9fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Authorization/AuthorizationCheckerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public function testVoteAuthenticatesTokenIfNecessary()
6161
->will($this->returnValue(true));
6262

6363
// first run the token has not been re-authenticated yet, after isGranted is called, it should be equal
64-
$this->assertFalse($newToken === $this->tokenStorage->getToken());
64+
$this->assertNotSame($newToken, $this->tokenStorage->getToken());
6565
$this->assertTrue($this->authorizationChecker->isGranted('foo'));
66-
$this->assertTrue($newToken === $this->tokenStorage->getToken());
66+
$this->assertSame($newToken, $this->tokenStorage->getToken());
6767
}
6868

6969
/**
@@ -90,7 +90,7 @@ public function testIsGranted($decide)
9090
->method('decide')
9191
->will($this->returnValue($decide));
9292
$this->tokenStorage->setToken($token);
93-
$this->assertTrue($decide === $this->authorizationChecker->isGranted('ROLE_FOO'));
93+
$this->assertSame($decide, $this->authorizationChecker->isGranted('ROLE_FOO'));
9494
}
9595

9696
public function isGrantedProvider()

0 commit comments

Comments
 (0)