Skip to content

Commit 8209754

Browse files
committed
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
2 parents 7079aa9 + 2c4da3c commit 8209754

File tree

2 files changed

+10
-31
lines changed

2 files changed

+10
-31
lines changed

src/Symfony/Component/Security/Core/Tests/LegacySecurityContextInterfaceTest.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/Symfony/Component/Security/Core/Tests/LegacySecurityContextTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,14 @@ public function oldConstructorSignatureFailuresProvider()
119119
array(true, null),
120120
);
121121
}
122+
123+
/**
124+
* Test if the BC Layer is working as intended.
125+
*/
126+
public function testConstantSync()
127+
{
128+
$this->assertSame(Security::ACCESS_DENIED_ERROR, SecurityContextInterface::ACCESS_DENIED_ERROR);
129+
$this->assertSame(Security::AUTHENTICATION_ERROR, SecurityContextInterface::AUTHENTICATION_ERROR);
130+
$this->assertSame(Security::LAST_USERNAME, SecurityContextInterface::LAST_USERNAME);
131+
}
122132
}

0 commit comments

Comments
 (0)