diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-09-26 09:34:51 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-09-26 09:34:51 +0200 |
commit | 3b38118178f9adcd9f969b5fe77010287d6f7ed0 (patch) | |
tree | c529b70f789b29dbd5080638e3b5e87debef925b /Core/Tests/LegacySecurityContextTest.php | |
parent | d250979823c59287ae69988bc9898632a2eea201 (diff) | |
parent | 37250a2370bc9f5665853559afb854c875c2ddfc (diff) | |
download | symfony-security-3b38118178f9adcd9f969b5fe77010287d6f7ed0.zip symfony-security-3b38118178f9adcd9f969b5fe77010287d6f7ed0.tar.gz symfony-security-3b38118178f9adcd9f969b5fe77010287d6f7ed0.tar.bz2 |
minor #15893 Merged LegacySecurityContext tests (WouterJ)
This PR was merged into the 2.8 branch.
Discussion
----------
Merged LegacySecurityContext tests
I've no idea why this test was introduced in the wrong namespace in 2.8, but I merged it in the correct test case now.
Commits
-------
2c4da3c Merged LegacySecurityContext tests
Diffstat (limited to 'Core/Tests/LegacySecurityContextTest.php')
-rw-r--r-- | Core/Tests/LegacySecurityContextTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Core/Tests/LegacySecurityContextTest.php b/Core/Tests/LegacySecurityContextTest.php index 92d7c16..7db24e7 100644 --- a/Core/Tests/LegacySecurityContextTest.php +++ b/Core/Tests/LegacySecurityContextTest.php @@ -119,4 +119,14 @@ class LegacySecurityContextTest extends \PHPUnit_Framework_TestCase array(true, null), ); } + + /** + * Test if the BC Layer is working as intended. + */ + public function testConstantSync() + { + $this->assertSame(Security::ACCESS_DENIED_ERROR, SecurityContextInterface::ACCESS_DENIED_ERROR); + $this->assertSame(Security::AUTHENTICATION_ERROR, SecurityContextInterface::AUTHENTICATION_ERROR); + $this->assertSame(Security::LAST_USERNAME, SecurityContextInterface::LAST_USERNAME); + } } |