mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
test: use Response:: enum for HTTP status code
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Tests\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class HomeControllerTest extends WebTestCase
|
||||
{
|
||||
@@ -11,6 +12,6 @@ class HomeControllerTest extends WebTestCase
|
||||
$client = static::createClient();
|
||||
$client->request('GET', '/login/oauth');
|
||||
|
||||
$this->assertResponseStatusCodeSame(404);
|
||||
$this->assertResponseStatusCodeSame(Response::HTTP_NOT_FOUND);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user