mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 12:34:06 +00:00
32 lines
619 B
PHP
32 lines
619 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\contactTest;
|
|
namespace Tests\API;
|
|
|
|
use Tests\TestCase;
|
|
use Illuminate\Foundation\Testing\WithFaker;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
|
|
class contactTest extends TestCase
|
|
{
|
|
|
|
|
|
public function testGet()
|
|
{
|
|
$response = $this->json('GET', '/api/company/search/cief');
|
|
|
|
$response
|
|
->assertStatus(200);
|
|
|
|
}
|
|
|
|
public function testStoreId()
|
|
{
|
|
$response = $this->json('POST', '/api/contacts', ['company_id' => '1'], $this->headers());
|
|
$response
|
|
->assertStatus(201);
|
|
|
|
}
|
|
}
|