Skip to content

Instantly share code, notes, and snippets.

@VusalGhasanov
Created January 3, 2022 07:19
Show Gist options
  • Save VusalGhasanov/9f63c616bfbd4030a355cbdac8833aae to your computer and use it in GitHub Desktop.
Save VusalGhasanov/9f63c616bfbd4030a355cbdac8833aae to your computer and use it in GitHub Desktop.
Testing customer store
<?php
namespace Tests\Feature;
use Tests\TestCase;
class CustomerStoreTest extends TestCase
{
/**
* A basic functional test example.
*
* @return void
*/
public function test_interacting_with_headers()
{
$response = $this->post('/customers', ['name' => 'Vusal', 'email' => 'vusal.ghasanov@gmail.com']);
$response->assertStatus(200);
$response->dump();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment