From 7f0b9645d86e4ffa76dda5ec6bf9ff38f292739b Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Sat, 29 May 2021 19:40:43 +0300 Subject: [PATCH] Test result fix edited --- tests/Feature/Wizard/CompaniesTest.php | 2 +- tests/Feature/Wizard/CurrenciesTest.php | 4 ++-- tests/Feature/Wizard/TaxesTest.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Feature/Wizard/CompaniesTest.php b/tests/Feature/Wizard/CompaniesTest.php index 6add6a521..4d0d712f7 100644 --- a/tests/Feature/Wizard/CompaniesTest.php +++ b/tests/Feature/Wizard/CompaniesTest.php @@ -11,7 +11,7 @@ class CompaniesTest extends FeatureTestCase $this->loginAs() ->get(route('wizard.companies.edit')) ->assertStatus(200) - ->assertSeeText(trans('modules.api_key')); + ->assertSeeText(trans('general.wizard')); } public function testItShouldUpdateCompany() diff --git a/tests/Feature/Wizard/CurrenciesTest.php b/tests/Feature/Wizard/CurrenciesTest.php index 0ad989b7b..a1d93c6dd 100644 --- a/tests/Feature/Wizard/CurrenciesTest.php +++ b/tests/Feature/Wizard/CurrenciesTest.php @@ -12,7 +12,7 @@ class CurrenciesTest extends FeatureTestCase $this->loginAs() ->get(route('wizard.currencies.index')) ->assertStatus(200) - ->assertSeeText(trans('demo.currencies.usd')); + ->assertSeeText(trans('general.wizard')); } public function testItShouldCreateCurrency() @@ -42,7 +42,7 @@ class CurrenciesTest extends FeatureTestCase $request['name'] = $this->faker->text(15); - $message = trans('messages.success.updated', ['type' => $currency->name]); + $message = trans('messages.success.updated', ['type' => $request['name']]); $this->loginAs() ->patch(route('wizard.currencies.update', $currency->id), $request) diff --git a/tests/Feature/Wizard/TaxesTest.php b/tests/Feature/Wizard/TaxesTest.php index 643ecc327..f01fb8863 100644 --- a/tests/Feature/Wizard/TaxesTest.php +++ b/tests/Feature/Wizard/TaxesTest.php @@ -12,7 +12,7 @@ class TaxesTest extends FeatureTestCase $this->loginAs() ->get(route('wizard.taxes.index')) ->assertStatus(200) - ->assertSeeText(trans('general.add_new')); + ->assertSeeText(trans('general.wizard')); } public function testItShouldCreateTax() @@ -40,7 +40,7 @@ class TaxesTest extends FeatureTestCase $request['name'] = $this->faker->text(15); - $message = trans('messages.success.updated', ['type' => $tax->name]); + $message = trans('messages.success.updated', ['type' => $request['name']]); $this->loginAs() ->patch(route('wizard.taxes.update', $tax->id), $request)