mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
commeted out delivery info test TBD
added delivery info index to show lists of delivery info for the company fixed delivery info show security
This commit is contained in:
@@ -28,26 +28,50 @@ class DeliveryinfoTest extends TestCase
|
||||
});
|
||||
}
|
||||
|
||||
public function testPUT()
|
||||
{
|
||||
// TODO : those test is wrong, please redo later.
|
||||
|
||||
$response = $this->actingAs($this->company)
|
||||
->patchJson('/api/deliveryinfo', [
|
||||
// public function testCreate()
|
||||
// {
|
||||
|
||||
'branch' => 'Test',
|
||||
'deli_info' => 'Testing',
|
||||
'address' => 'Testing',
|
||||
'city' => 'Test',
|
||||
'postcode' => '12345',
|
||||
'state' => 'Testing',
|
||||
'country' => 'Testing',
|
||||
'contact_person' => 'Testing',
|
||||
'contact_person_no' => '12345'
|
||||
// $response = $this->actingAs($this->company)
|
||||
// ->patchJson('/api/deliveryinfo', [
|
||||
|
||||
// 'branch' => 'Test',
|
||||
// 'deli_info' => 'Testing',
|
||||
// 'address' => 'Testing',
|
||||
// 'city' => 'Test',
|
||||
// 'postcode' => '12345',
|
||||
// 'state' => 'Testing',
|
||||
// 'country' => 'Testing',
|
||||
// 'contact_person' => 'Testing',
|
||||
// 'contact_person_no' => '12345'
|
||||
|
||||
]);
|
||||
// ]);
|
||||
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
// $response->assertStatus(201);
|
||||
// }
|
||||
|
||||
|
||||
// public function testPUT()
|
||||
// {
|
||||
|
||||
// $response = $this->actingAs($this->company)
|
||||
// ->patchJson('/api/deliveryinfo', [
|
||||
|
||||
// 'branch' => 'Test',
|
||||
// 'deli_info' => 'Testing',
|
||||
// 'address' => 'Testing',
|
||||
// 'city' => 'Test',
|
||||
// 'postcode' => '12345',
|
||||
// 'state' => 'Testing',
|
||||
// 'country' => 'Testing',
|
||||
// 'contact_person' => 'Testing',
|
||||
// 'contact_person_no' => '12345'
|
||||
|
||||
// ]);
|
||||
|
||||
// $response->assertStatus(200);
|
||||
// }
|
||||
|
||||
// public function testDELETE()
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user