From ee1f9bb57ce7d52006a6d055b4db4a38df5499ba Mon Sep 17 00:00:00 2001 From: Annika Wolff Date: Thu, 30 Jan 2020 15:47:22 +0100 Subject: [PATCH] refactor functional AttributeCest, that was flickering sometimes --- .env.testing | 2 +- tests/functional/Admin/Catalog/AttributeCest.php | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.env.testing b/.env.testing index 299f945da..fe2d1edf3 100644 --- a/.env.testing +++ b/.env.testing @@ -10,7 +10,7 @@ LOG_CHANNEL=stack DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=3306 -DB_DATABASE=bagisto_testing +DB_DATABASE=bagisto_test DB_USERNAME=bagisto DB_PASSWORD=secret DB_PREFIX= diff --git a/tests/functional/Admin/Catalog/AttributeCest.php b/tests/functional/Admin/Catalog/AttributeCest.php index 649a7d058..d1a203d5b 100644 --- a/tests/functional/Admin/Catalog/AttributeCest.php +++ b/tests/functional/Admin/Catalog/AttributeCest.php @@ -2,7 +2,6 @@ namespace Tests\Functional\Admin\Catalog; - use FunctionalTester; use Webkul\Attribute\Models\Attribute; @@ -76,7 +75,7 @@ class AttributeCest private function fillForm(FunctionalTester $I, bool $skipType = false): array { $testData = [ - 'code' => $I->fake()->word, + 'code' => $I->fake()->firstName, 'type' => $I->fake()->randomElement([ 'text', 'textarea', @@ -85,7 +84,7 @@ class AttributeCest 'select', 'multiselect' ]), - 'admin_name' => $I->fake()->word, + 'admin_name' => $I->fake()->firstName, ]; $I->fillField('code', $testData['code']);