Add show page test case..
This commit is contained in:
		@@ -19,6 +19,18 @@ class BillsTest extends FeatureTestCase
 | 
			
		||||
            ->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()
 | 
			
		||||
    {
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,17 @@ class PaymentsTest extends FeatureTestCase
 | 
			
		||||
            ->assertStatus(200)
 | 
			
		||||
            ->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()
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,18 @@ class VendorsTest extends FeatureTestCase
 | 
			
		||||
            ->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()
 | 
			
		||||
    {
 | 
			
		||||
        $this->loginAs()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user