summaryrefslogtreecommitdiffstats
path: root/Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2012-10-31 17:45:37 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2012-11-06 09:15:19 +0100
commit5512b0a91ae03413414d689184cb0f260807a291 (patch)
tree8c437c0bd421978609b10056ea9987932a3aca4a /Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php
parentb20dc084818bf7f59dd4ff937896f4236821055c (diff)
downloadsymfony-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.php3
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'));
}
}