|
|
|
@ -13,8 +13,8 @@ class ManageVendorsTest extends TestCase |
|
|
|
/** @test */ |
|
|
|
public function user_can_see_vendor_list_in_vendor_index_page() |
|
|
|
{ |
|
|
|
$vendor1 = factory(Vendor::class)->create(['name' => 'Testing name', 'description' => 'Testing 123']); |
|
|
|
$vendor2 = factory(Vendor::class)->create(['name' => 'Testing name', 'description' => 'Testing 456']); |
|
|
|
$vendor1 = factory(Vendor::class)->create(['name' => 'Testing name']); |
|
|
|
$vendor2 = factory(Vendor::class)->create(['name' => 'Testing name']); |
|
|
|
|
|
|
|
$this->adminUserSigningIn(); |
|
|
|
$this->visit(route('vendors.index')); |
|
|
|
@ -33,7 +33,7 @@ class ManageVendorsTest extends TestCase |
|
|
|
|
|
|
|
$this->submitForm(trans('vendor.create'), [ |
|
|
|
'name' => 'Vendor 1 name', |
|
|
|
'description' => 'Vendor 1 description', |
|
|
|
'notes' => 'Vendor 1 notes', |
|
|
|
'website' => 'https://example.com', |
|
|
|
]); |
|
|
|
|
|
|
|
@ -42,7 +42,7 @@ class ManageVendorsTest extends TestCase |
|
|
|
|
|
|
|
$this->seeInDatabase('vendors', [ |
|
|
|
'name' => 'Vendor 1 name', |
|
|
|
'description' => 'Vendor 1 description', |
|
|
|
'notes' => 'Vendor 1 notes', |
|
|
|
'website' => 'https://example.com', |
|
|
|
]); |
|
|
|
} |
|
|
|
@ -59,7 +59,7 @@ class ManageVendorsTest extends TestCase |
|
|
|
|
|
|
|
$this->submitForm(trans('vendor.update'), [ |
|
|
|
'name' => 'Vendor 1 name', |
|
|
|
'description' => 'Vendor 1 description', |
|
|
|
'notes' => 'Vendor 1 notes', |
|
|
|
'website' => 'https://example.com', |
|
|
|
'is_active' => 0, |
|
|
|
]); |
|
|
|
@ -69,7 +69,7 @@ class ManageVendorsTest extends TestCase |
|
|
|
|
|
|
|
$this->seeInDatabase('vendors', [ |
|
|
|
'name' => 'Vendor 1 name', |
|
|
|
'description' => 'Vendor 1 description', |
|
|
|
'notes' => 'Vendor 1 notes', |
|
|
|
'website' => 'https://example.com', |
|
|
|
'is_active' => 0, |
|
|
|
]); |
|
|
|
|