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 RevenuesTest extends FeatureTestCase
$this->assertFlashLevel('success');
}
public function testItShouldSeeRevenueUpdatePage()
{
$revenue = $this->dispatch(new CreateTransaction($this->getRequest()));
$this->loginAs()
->get(route('revenues.edit', $revenue->id))
->assertStatus(200)
->assertSee($revenue->amount);
}
public function testItShouldUpdateRevenue()
{
$request = $this->getRequest();