From 33ddae27aea01874fa2b505d902bb08354fec733 Mon Sep 17 00:00:00 2001 From: Florian Bosdorff Date: Sat, 9 May 2020 12:38:20 +0200 Subject: [PATCH 1/2] fix namespace issues --- composer.json | 5 ++++- .../{CouponsDataGrid.php => CartRuleCouponsDataGrid.php} | 0 tests/functional/Admin/Catalog/ProductCest.php | 2 +- tests/functional/CartRule/CartRuleCest.php | 4 +++- tests/functional/Checkout/Order/OrderCest.php | 2 +- tests/functional/Customer/CustomerCest.php | 3 +++ tests/functional/Shop/CartTaxesCest.php | 2 +- tests/trigger/Shop/DatabaseLogicCest.php | 8 ++++---- tests/trigger/Shop/TriggerCest.php | 2 +- tests/unit/CartRule/CartRuleCest.php | 2 +- 10 files changed, 19 insertions(+), 11 deletions(-) rename packages/Webkul/Admin/src/DataGrids/{CouponsDataGrid.php => CartRuleCouponsDataGrid.php} (100%) diff --git a/composer.json b/composer.json index 822b663ab..261b2afd0 100755 --- a/composer.json +++ b/composer.json @@ -110,7 +110,10 @@ "autoload-dev": { "psr-4": { - "Tests\\": "tests/" + "Tests\\Acceptance\\": "tests/acceptance/", + "Tests\\Functional\\": "tests/functional/", + "Tests\\Unit\\": "tests/unit/", + "Tests\\Trigger\\": "tests/trigger/" } }, diff --git a/packages/Webkul/Admin/src/DataGrids/CouponsDataGrid.php b/packages/Webkul/Admin/src/DataGrids/CartRuleCouponsDataGrid.php similarity index 100% rename from packages/Webkul/Admin/src/DataGrids/CouponsDataGrid.php rename to packages/Webkul/Admin/src/DataGrids/CartRuleCouponsDataGrid.php diff --git a/tests/functional/Admin/Catalog/ProductCest.php b/tests/functional/Admin/Catalog/ProductCest.php index 9d2d3461a..ef49cb1ce 100644 --- a/tests/functional/Admin/Catalog/ProductCest.php +++ b/tests/functional/Admin/Catalog/ProductCest.php @@ -1,6 +1,6 @@ faker = Factory::create(); @@ -45,7 +45,7 @@ class DatabaseLogicCest ]); $parentCategoryName = $this->faker->word; - + $parentCategoryAttributes = [ 'parent_id' => $rootCategory->id, 'position' => 1, @@ -68,7 +68,7 @@ class DatabaseLogicCest $rootCategory->prependNode($parentCategory); $I->assertNotNull($parentCategory); - $categoryName = $this->faker->word; + $categoryName = $this->faker->word; $categoryAttributes = [ 'position' => 1, 'status' => 1, diff --git a/tests/trigger/Shop/TriggerCest.php b/tests/trigger/Shop/TriggerCest.php index 2be0f75d0..704a08fb6 100644 --- a/tests/trigger/Shop/TriggerCest.php +++ b/tests/trigger/Shop/TriggerCest.php @@ -1,6 +1,6 @@ Date: Sat, 9 May 2020 12:46:11 +0200 Subject: [PATCH 2/2] fix CustomerCest --- tests/functional/Customer/CustomerCest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/Customer/CustomerCest.php b/tests/functional/Customer/CustomerCest.php index c9fb53d6c..6db95969c 100644 --- a/tests/functional/Customer/CustomerCest.php +++ b/tests/functional/Customer/CustomerCest.php @@ -37,7 +37,7 @@ class CustomerCest public function updateCustomerAddress(FunctionalTester $I) { $I->wantTo('Instantiate a european faker factory to have the vat provider available'); - $faker = Faker\Factory::create('at_AT'); + $faker = \Faker\Factory::create('at_AT'); $formCssSelector = '#customer-address-form';