mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-21 13:34:16 +00:00
rename test
This commit is contained in:
@@ -32,11 +32,6 @@ class DeliveryinfoController extends Controller
|
||||
{
|
||||
$deliveryinfo = Deliveryinfo::where('com_id', Auth::user()->company())->where('id', $id)->first();
|
||||
|
||||
if (!$deliveryinfo)
|
||||
{
|
||||
return response()->json(['message'=>'Access Denied!'], 404);
|
||||
}
|
||||
|
||||
$deliveryinfos = DB::table('deliveryinfos')
|
||||
->select('id', 'branch', 'deli_info', 'address', 'city', 'postcode', 'state', 'country', 'contact_person', 'contact_person_no', 'com_id')
|
||||
->where('com_id', Auth::user()->company())
|
||||
|
||||
@@ -8,9 +8,4 @@ class Warehouse extends Model
|
||||
{
|
||||
protected $fillable = ['city', 'address','zip','state','contact_person','contact_person_no','branch','country','com_id'];
|
||||
|
||||
public function contact(){
|
||||
|
||||
return $this->hasMany(App/Contact);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,6 +81,5 @@ class DeliveryinfoTest extends TestCase
|
||||
|
||||
$response->assertStatus(204);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\API;
|
||||
namespace Tests\Unit;
|
||||
|
||||
use Tests\TestCase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
@@ -8,7 +8,7 @@ use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||||
|
||||
class contactTest extends TestCase
|
||||
class ContactTest extends TestCase
|
||||
{
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user