contact approval and testing

This commit is contained in:
Asif
2018-05-18 15:30:35 +08:00
parent 20209f9e36
commit 6797f63383
3 changed files with 58 additions and 0 deletions
+21
View File
@@ -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);
}
}