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

@ -33,6 +33,16 @@ class PaymentsTest extends FeatureTestCase
$this->assertFlashLevel('success');
}
public function testItShouldSeePaymentUpdatePage()
{
$payment = $this->dispatch(new CreateTransaction($this->getRequest()));
$this->loginAs()
->get(route('payments.edit', $payment->id))
->assertStatus(200)
->assertSee($payment->amount);
}
public function testItShouldUpdatePayment()
{
$request = $this->getRequest();