18 lines
418 B
PHP
18 lines
418 B
PHP
<?php
|
|
|
|
namespace App\Tests\Core\Auth;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|
|
|
class LoginTest extends WebTestCase
|
|
{
|
|
public function testLoginRedirect(): void
|
|
{
|
|
$client = static::createClient();
|
|
$crawler = $client->request('GET', '/admin');
|
|
|
|
$this->assertResponseStatusCodeSame(302);
|
|
$client->followRedirect();
|
|
$this->assertResponseIsSuccessful();
|
|
}
|
|
}
|