Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c4da3c

Browse files
committed
Merged LegacySecurityContext tests
1 parent dacbfe9 commit 2c4da3c

File tree

2 files changed

+10
-31
lines changed

2 files changed

+10
-31
lines changed

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
}

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

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

0 commit comments

Comments
 (0)