Created
January 2, 2022 18:08
-
-
Save abdullahqureshi1994/9ddf9598a3a2fa136ceae4d8e6459efd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Feature; | |
use Tests\TestCase; | |
class TestNewCustomerRequest extends TestCase | |
{ | |
/** | |
* A basic functional test example. | |
* | |
* @return void | |
*/ | |
public function test_new_customer_request() | |
{ | |
$response = $this->withHeaders([ | |
'accept' => 'application/json', | |
])->post('/api/customer', ['name' => 'thomos','email' => '[email protected]']); | |
$response->assertStatus(201); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment