mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
contact approval and testing
This commit is contained in:
@@ -28,4 +28,25 @@ class contactTest extends TestCase
|
||||
->assertStatus(201);
|
||||
|
||||
}
|
||||
|
||||
// public function testDeleteContacts()
|
||||
// {
|
||||
//
|
||||
// $response = $this->json('DELETE', '/api/contacts/1');
|
||||
//
|
||||
// $response
|
||||
// ->assertStatus(204);
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
|
||||
public function testApprove()
|
||||
{
|
||||
$response = $this->json('POST', '/api/contacts/1/request', ['action' => 1]);
|
||||
$response
|
||||
->assertStatus(200);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user