AuthenticationCommencingTest.php 507 B

123456789101112131415
  1. <?php
  2. namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
  3. class AuthenticationCommencingTest extends WebTestCase
  4. {
  5. public function testAuthenticationIsCommencingIfAccessDeniedExceptionIsWrapped()
  6. {
  7. $client = $this->createClient(array('test_case' => 'StandardFormLogin', 'root_config' => 'config.yml'));
  8. $client->insulate();
  9. $client->request('GET', '/secure-but-not-covered-by-access-control');
  10. $this->assertRedirect($client->getResponse(), '/login');
  11. }
  12. }