summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWouterJ <waldio.webdesign@gmail.com>2015-09-25 09:39:51 +0200
committerWouterJ <waldio.webdesign@gmail.com>2015-09-25 09:39:51 +0200
commit37250a2370bc9f5665853559afb854c875c2ddfc (patch)
treee181ec4a7e4930bc06bc2f3453eafe9e5f111333
parent4a5dea2861a51b6b0f3c07dc541d9449882c44e1 (diff)
downloadsymfony-security-37250a2370bc9f5665853559afb854c875c2ddfc.zip
symfony-security-37250a2370bc9f5665853559afb854c875c2ddfc.tar.gz
symfony-security-37250a2370bc9f5665853559afb854c875c2ddfc.tar.bz2
Merged LegacySecurityContext tests
-rw-r--r--Core/Tests/LegacySecurityContextTest.php10
-rw-r--r--Tests/Core/LegacySecurityContextInterfaceTest.php31
2 files changed, 10 insertions, 31 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);
+ }
}
diff --git a/Tests/Core/LegacySecurityContextInterfaceTest.php b/Tests/Core/LegacySecurityContextInterfaceTest.php
deleted file mode 100644
index 5225eb5..0000000
--- a/Tests/Core/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\Tests\Core;
-
-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);
- }
-}