Add show page test case..

This commit is contained in:
Cüneyt Şentürk
2021-06-30 12:56:46 +03:00
parent 0bdaea1417
commit 3c72cd60b0
6 changed files with 71 additions and 0 deletions

View File

@ -19,6 +19,18 @@ class InvoicesTest extends FeatureTestCase
->assertSeeText(trans_choice('general.invoices', 2));
}
public function testItShouldSeeInvoiceShowPage()
{
$request = $this->getRequest();
$invoice = $this->dispatch(new CreateDocument($request));
$this->loginAs()
->get(route('invoices.show', $invoice->id))
->assertStatus(200)
->assertSee($invoice->contact_email);
}
public function testItShouldSeeInvoiceCreatePage()
{
$this->loginAs()