From ce923d295b58c368ae0da8e11bdd15b72b780f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Wed, 10 Nov 2021 14:03:32 +0300 Subject: [PATCH] Account show test added --- tests/Feature/Banking/AccountsTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Feature/Banking/AccountsTest.php b/tests/Feature/Banking/AccountsTest.php index 5469d63f5..2a5a8d203 100644 --- a/tests/Feature/Banking/AccountsTest.php +++ b/tests/Feature/Banking/AccountsTest.php @@ -82,6 +82,18 @@ class AccountsTest extends FeatureTestCase $this->assertSoftDeleted('accounts', $request); } + public function testItShouldShowAccount() + { + $request = $this->getRequest(); + + $account = $this->dispatch(new CreateAccount($request)); + + $this->loginAs() + ->get(route('accounts.show', $account->id)) + ->assertStatus(200) + ->assertSee($account->name); + } + public function getRequest() { return Account::factory()->enabled()->raw();