mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-27 00:14:03 +00:00
46 lines
819 B
PHP
46 lines
819 B
PHP
<?php
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use Tests\TestCase;
|
|
use Illuminate\Foundation\Testing\WithFaker;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
|
|
class contactTest extends TestCase
|
|
{
|
|
/**
|
|
* A basic test example.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testBasicExample()
|
|
{
|
|
$response = $this->json('POST', '/api/contacts', ['ff_id' => '10']);
|
|
|
|
$response
|
|
->assertStatus(201);
|
|
// ->assertExactJson([
|
|
// 'created' => true,
|
|
// ]);
|
|
}
|
|
|
|
|
|
public function testGet()
|
|
// {
|
|
// $response = $this->json('GET', '/api/contacts');
|
|
//
|
|
// $response
|
|
// ->assertStatus(200);
|
|
//
|
|
// }
|
|
{
|
|
$response = $this->get('/api/contacts');
|
|
|
|
$response->assertStatus(200);
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|