Files
izyim-api/tests/Unit/contactTest.php
T
2018-05-16 16:23:04 +08:00

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);
}
}