codesniffer fixes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
@@ -8,6 +10,17 @@ final class ContactFormTest extends TestCase
|
||||
use RefreshDatabase;
|
||||
|
||||
|
||||
/**
|
||||
* Tests the contact form submission API endpoint.
|
||||
*
|
||||
* This test performs two POST requests to the '/api/contact' endpoint
|
||||
* using the `postJson` method. The first request contains valid data and
|
||||
* should return a 201 status code, indicating a successful creation.
|
||||
* The second request omits the 'email' field, which should cause a
|
||||
* validation error and return a 422 status code.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testContactForm(): void
|
||||
{
|
||||
$formData = [
|
||||
|
||||
Reference in New Issue
Block a user