improved should update test

This commit is contained in:
denisdulici
2020-01-13 17:20:28 +03:00
parent 7ef3f0a283
commit 548bb65a57
13 changed files with 29 additions and 16 deletions

View File

@ -49,11 +49,12 @@ class PaymentsTest extends FeatureTestCase
$payment = $this->dispatch(new CreateTransaction($request));
$request['name'] = $this->faker->text(15);
$request['amount'] = $this->faker->randomFloat(2, 1, 1000);
$this->loginAs()
->patch(route('payments.update', $payment->id), $request)
->assertStatus(200);
->assertStatus(200)
->assertSee($request['amount']);
$this->assertFlashLevel('success');
}