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 | |
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')
-rw-r--r-- | Core/Tests/LegacySecurityContextInterfaceTest.php | 31 | ||||
-rw-r--r-- | Core/Tests/LegacySecurityContextTest.php | 10 |
2 files changed, 10 insertions, 31 deletions
diff --git a/Core/Tests/LegacySecurityContextInterfaceTest.php b/Core/Tests/LegacySecurityContextInterfaceTest.php deleted file mode 100644 index a45ecf9..0000000 --- a/Core/Tests/LegacySecurityContextInterfaceTest.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php - -/* - * This file is part of the Symfony package. - * - * (c) Fabien Potencier <fabien@symfony.com> - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Security\Core\Tests; - -use Symfony\Component\Security\Core\SecurityContextInterface; -use Symfony\Component\Security\Core\Security; - -/** - * @group legacy - */ -class LegacySecurityContextInterfaceTest extends \PHPUnit_Framework_TestCase -{ - /** - * 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); - } -} 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); + } } |