Skip to content

Instantly share code, notes, and snippets.

@abdullahqureshi1994
Created January 2, 2022 18:08
Show Gist options
  • Save abdullahqureshi1994/9ddf9598a3a2fa136ceae4d8e6459efd to your computer and use it in GitHub Desktop.
Save abdullahqureshi1994/9ddf9598a3a2fa136ceae4d8e6459efd to your computer and use it in GitHub Desktop.
<?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' => '121221@wewewexxx.com']);
$response->assertStatus(201);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment