Add show page test case..
This commit is contained in:
parent
0bdaea1417
commit
3c72cd60b0
@ -19,6 +19,18 @@ class BillsTest extends FeatureTestCase
|
|||||||
->assertSeeText(trans_choice('general.bills', 2));
|
->assertSeeText(trans_choice('general.bills', 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testItShouldSeeBillShowPage()
|
||||||
|
{
|
||||||
|
$request = $this->getRequest();
|
||||||
|
|
||||||
|
$bill = $this->dispatch(new CreateDocument($request));
|
||||||
|
|
||||||
|
$this->loginAs()
|
||||||
|
->get(route('bills.show', $bill->id))
|
||||||
|
->assertStatus(200)
|
||||||
|
->assertSee($bill->contact_email);
|
||||||
|
}
|
||||||
|
|
||||||
public function testItShouldSeeBillCreatePage()
|
public function testItShouldSeeBillCreatePage()
|
||||||
{
|
{
|
||||||
$this->loginAs()
|
$this->loginAs()
|
||||||
|
@ -18,6 +18,17 @@ class PaymentsTest extends FeatureTestCase
|
|||||||
->assertStatus(200)
|
->assertStatus(200)
|
||||||
->assertSeeText(trans_choice('general.payments', 2));
|
->assertSeeText(trans_choice('general.payments', 2));
|
||||||
}
|
}
|
||||||
|
public function testItShouldSeePaymentShowPage()
|
||||||
|
{
|
||||||
|
$request = $this->getRequest();
|
||||||
|
|
||||||
|
$payment = $this->dispatch(new CreateTransaction($request));
|
||||||
|
|
||||||
|
$this->loginAs()
|
||||||
|
->get(route('payments.show', $payment->id))
|
||||||
|
->assertStatus(200)
|
||||||
|
->assertSee($payment->contact->email);
|
||||||
|
}
|
||||||
|
|
||||||
public function testItShouldSeePaymentCreatePage()
|
public function testItShouldSeePaymentCreatePage()
|
||||||
{
|
{
|
||||||
|
@ -19,6 +19,18 @@ class VendorsTest extends FeatureTestCase
|
|||||||
->assertSeeText(trans_choice('general.vendors', 2));
|
->assertSeeText(trans_choice('general.vendors', 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testItShouldSeeVendorShowPage()
|
||||||
|
{
|
||||||
|
$request = $this->getRequest();
|
||||||
|
|
||||||
|
$vendor = $this->dispatch(new CreateContact($request));
|
||||||
|
|
||||||
|
$this->loginAs()
|
||||||
|
->get(route('vendors.show', $vendor->id))
|
||||||
|
->assertStatus(200)
|
||||||
|
->assertSee($vendor->email);
|
||||||
|
}
|
||||||
|
|
||||||
public function testItShouldSeeVendorCreatePage()
|
public function testItShouldSeeVendorCreatePage()
|
||||||
{
|
{
|
||||||
$this->loginAs()
|
$this->loginAs()
|
||||||
|
@ -20,6 +20,18 @@ class CustomersTest extends FeatureTestCase
|
|||||||
->assertSeeText(trans_choice('general.customers', 2));
|
->assertSeeText(trans_choice('general.customers', 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testItShouldSeeCustomerShowPage()
|
||||||
|
{
|
||||||
|
$request = $this->getRequest();
|
||||||
|
|
||||||
|
$customer = $this->dispatch(new CreateContact($request));
|
||||||
|
|
||||||
|
$this->loginAs()
|
||||||
|
->get(route('customers.show', $customer->id))
|
||||||
|
->assertStatus(200)
|
||||||
|
->assertSee($customer->email);
|
||||||
|
}
|
||||||
|
|
||||||
public function testItShouldSeeCustomerCreatePage()
|
public function testItShouldSeeCustomerCreatePage()
|
||||||
{
|
{
|
||||||
$this->loginAs()
|
$this->loginAs()
|
||||||
|
@ -19,6 +19,18 @@ class InvoicesTest extends FeatureTestCase
|
|||||||
->assertSeeText(trans_choice('general.invoices', 2));
|
->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()
|
public function testItShouldSeeInvoiceCreatePage()
|
||||||
{
|
{
|
||||||
$this->loginAs()
|
$this->loginAs()
|
||||||
|
@ -19,6 +19,18 @@ class RevenuesTest extends FeatureTestCase
|
|||||||
->assertSeeText(trans_choice('general.revenues', 2));
|
->assertSeeText(trans_choice('general.revenues', 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testItShouldSeeRevenueShowPage()
|
||||||
|
{
|
||||||
|
$request = $this->getRequest();
|
||||||
|
|
||||||
|
$revenue = $this->dispatch(new CreateTransaction($request));
|
||||||
|
|
||||||
|
$this->loginAs()
|
||||||
|
->get(route('revenues.show', $revenue->id))
|
||||||
|
->assertStatus(200)
|
||||||
|
->assertSee($revenue->contact->email);
|
||||||
|
}
|
||||||
|
|
||||||
public function testItShouldSeeRevenueCreatePage()
|
public function testItShouldSeeRevenueCreatePage()
|
||||||
{
|
{
|
||||||
$this->loginAs()
|
$this->loginAs()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user