Private
Public Access
chg: usr: completely disable the contact form #15
Deploy to Production / deploy (push) Successful in 3m0s
Deploy to Production / deploy (push) Successful in 3m0s
This commit is contained in:
@@ -89,14 +89,12 @@ class GameControllerTest extends WebTestCase
|
||||
}
|
||||
|
||||
#[Test]
|
||||
#[TestDox('Contact page loads successfully with form')]
|
||||
public function contactPageLoadsSuccessfully(): void
|
||||
#[TestDox('Contact page is not publicly accessible')]
|
||||
public function contactPageIsNotPubliclyAccessible(): void
|
||||
{
|
||||
$crawler = $this->client->request('GET', '/contact');
|
||||
|
||||
self::assertResponseStatusCodeSame(Response::HTTP_OK);
|
||||
self::assertSelectorExists('form');
|
||||
self::assertSelectorExists('button[type="submit"]');
|
||||
self::assertResponseStatusCodeSame(Response::HTTP_NOT_FOUND);
|
||||
}
|
||||
|
||||
#[Test]
|
||||
|
||||
Reference in New Issue
Block a user