vendor/symfony/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AuthenticationCommencingTest.php
author ymh <ymh.work@gmail.com>
Thu, 17 Nov 2011 16:48:20 +0100
changeset 36 6110c06c59d7
parent 0 7f95f8617b0b
permissions -rwxr-xr-x
make sure that we use external ids in the controller

<?php

namespace Symfony\Bundle\SecurityBundle\Tests\Functional;

class AuthenticationCommencingTest extends WebTestCase
{
    public function testAuthenticationIsCommencingIfAccessDeniedExceptionIsWrapped()
    {
        $client = $this->createClient(array('test_case' => 'StandardFormLogin', 'root_config' => 'config.yml'));
        $client->insulate();

        $client->request('GET', '/secure-but-not-covered-by-access-control');
        $this->assertRedirect($client->getResponse(), '/login');
    }
}