updated test routes

This commit is contained in:
denisdulici
2020-01-13 10:55:19 +03:00
parent b6f916ce4b
commit e5a11c3f44
16 changed files with 67 additions and 31 deletions

View File

@@ -38,7 +38,7 @@ class VendorsTest extends FeatureTestCase
$vendor = $this->dispatch(new CreateContact($this->getRequest()));
$this->loginAs()
->get(route('vendors.show', ['vendor' => $vendor->id]))
->get(route('vendors.show', $vendor->id))
->assertStatus(200)
->assertSee($vendor->email);
}
@@ -48,10 +48,9 @@ class VendorsTest extends FeatureTestCase
$vendor = $this->dispatch(new CreateContact($this->getRequest()));
$this->loginAs()
->get(route('vendors.edit', ['vendor' => $vendor->id]))
->get(route('vendors.edit', $vendor->id))
->assertStatus(200)
->assertSee($vendor->email)
->assertSee($vendor->name);
->assertSee($vendor->email);
}
public function testItShouldUpdateVendor()