| author | ymh <ymh.work@gmail.com> |
| Sat, 24 Sep 2011 15:40:41 +0200 | |
| changeset 0 | 7f95f8617b0b |
| permissions | -rwxr-xr-x |
| 0 | 1 |
<?php |
2 |
||
3 |
namespace Symfony\Bundle\SecurityBundle\Tests\Functional; |
|
4 |
||
5 |
class AuthenticationCommencingTest extends WebTestCase |
|
6 |
{ |
|
7 |
public function testAuthenticationIsCommencingIfAccessDeniedExceptionIsWrapped() |
|
8 |
{ |
|
9 |
$client = $this->createClient(array('test_case' => 'StandardFormLogin', 'root_config' => 'config.yml')); |
|
10 |
$client->insulate(); |
|
11 |
||
12 |
$client->request('GET', '/secure-but-not-covered-by-access-control'); |
|
13 |
$this->assertRedirect($client->getResponse(), '/login'); |
|
14 |
} |
|
15 |
} |