murph-skeleton/tests/Core/Auth/LoginTest.php
2023-01-08 22:51:27 +01:00

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();
}
}