diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2012-10-31 17:45:37 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2012-11-06 09:15:19 +0100 |
commit | 5512b0a91ae03413414d689184cb0f260807a291 (patch) | |
tree | 8c437c0bd421978609b10056ea9987932a3aca4a /Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php | |
parent | b20dc084818bf7f59dd4ff937896f4236821055c (diff) | |
download | symfony-security-5512b0a91ae03413414d689184cb0f260807a291.zip symfony-security-5512b0a91ae03413414d689184cb0f260807a291.tar.gz symfony-security-5512b0a91ae03413414d689184cb0f260807a291.tar.bz2 |
[Security] removed the 401 error custom status message
Diffstat (limited to 'Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php')
-rw-r--r-- | Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php b/Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php index ae0e3cc..8dfd618 100644 --- a/Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php +++ b/Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php @@ -34,7 +34,6 @@ class DigestAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase $response = $entryPoint->start($request, $authenticationException); $this->assertEquals(401, $response->getStatusCode()); - $this->assertAttributeEquals('TheAuthenticationExceptionMessage', 'statusText', $response); $this->assertRegExp('/^Digest realm="TheRealmName", qop="auth", nonce="[a-zA-Z0-9\/+]+={0,2}"$/', $response->headers->get('WWW-Authenticate')); } @@ -46,7 +45,6 @@ class DigestAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase $response = $entryPoint->start($request); $this->assertEquals(401, $response->getStatusCode()); - $this->assertAttributeEquals('Unauthorized', 'statusText', $response); $this->assertRegExp('/^Digest realm="TheRealmName", qop="auth", nonce="[a-zA-Z0-9\/+]+={0,2}"$/', $response->headers->get('WWW-Authenticate')); } @@ -60,7 +58,6 @@ class DigestAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase $response = $entryPoint->start($request, $nonceExpiredException); $this->assertEquals(401, $response->getStatusCode()); - $this->assertAttributeEquals('TheNonceExpiredExceptionMessage', 'statusText', $response); $this->assertRegExp('/^Digest realm="TheRealmName", qop="auth", nonce="[a-zA-Z0-9\/+]+={0,2}", stale="true"$/', $response->headers->get('WWW-Authenticate')); } } |