Skip to content

Commit 4e6603a

Browse files
authored
MDEE-499: Refactoring tests (#307)
* MDEE-499: Refactoring test
1 parent 68d1780 commit 4e6603a

File tree

94 files changed

+86
-390
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+86
-390
lines changed

CatalogDataExporter/Test/Integration/Category/CategoryRemovalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CategoryRemovalTest extends AbstractCategoryTest
2121
*
2222
* @magentoDbIsolation disabled
2323
* @magentoAppIsolation enabled
24-
* @magentoDataFixture Magento/CatalogDataExporter/_files/setup_category_removal.php
24+
* @magentoDataFixture Magento_CatalogDataExporter::Test/_files/setup_category_removal.php
2525
*
2626
* @return void
2727
*/

CatalogDataExporter/Test/Integration/Category/CategoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CategoryTest extends AbstractCategoryTest
2020
*
2121
* @magentoDbIsolation disabled
2222
* @magentoAppIsolation enabled
23-
* @magentoDataFixture Magento/CatalogDataExporter/_files/setup_category_tree.php
23+
* @magentoDataFixture Magento_CatalogDataExporter::Test/_files/setup_category_tree.php
2424
*
2525
* @return void
2626
* @throws NoSuchEntityException

CatalogDataExporter/Test/Integration/DownloadableProductsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class DownloadableProductsTest extends AbstractProductTestHelper
2323
*
2424
* @magentoDbIsolation disabled
2525
* @magentoAppIsolation enabled
26-
* @magentoDataFixture Magento/CatalogDataExporter/_files/downloadable_product_with_files_and_sample_url.php
26+
* @magentoDataFixture Magento_CatalogDataExporter::Test/_files/downloadable_product_with_files_and_sample_url.php
2727
*
2828
* @return void
2929
* @throws NoSuchEntityException

CatalogDataExporter/Test/Integration/ProductRemovalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function setUp(): void
3434
*
3535
* @magentoDbIsolation disabled
3636
* @magentoAppIsolation enabled
37-
* @magentoDataFixture Magento/CatalogDataExporter/_files/setup_product_removal.php
37+
* @magentoDataFixture Magento_CatalogDataExporter::Test/_files/setup_product_removal.php
3838
*
3939
* @return void
4040
* @throws NoSuchEntityException

CatalogDataExporter/Test/Integration/SimpleProductsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SimpleProductsTest extends AbstractProductTestHelper
2222
*
2323
* @magentoDbIsolation disabled
2424
* @magentoAppIsolation enabled
25-
* @magentoDataFixture Magento/CatalogDataExporter/_files/setup_simple_products_with_media_gallery.php
25+
* @magentoDataFixture Magento_CatalogDataExporter::Test/_files/setup_simple_products_with_media_gallery.php
2626
*
2727
* @return void
2828
* @throws NoSuchEntityException
@@ -60,7 +60,7 @@ public function testSimpleProducts() : void
6060
*
6161
* @magentoDbIsolation disabled
6262
* @magentoAppIsolation enabled
63-
* @magentoDataFixture Magento/CatalogDataExporter/_files/setup_simple_products_without_date.php
63+
* @magentoDataFixture Magento_CatalogDataExporter::Test/_files/setup_simple_products_without_date.php
6464
*
6565
* @return void
6666
* @throws NoSuchEntityException

CatalogDataExporter/Test/Integration/SimpleProductsWebsiteUnassignTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function setUp(): void
4040
*
4141
* @magentoDbIsolation disabled
4242
* @magentoAppIsolation enabled
43-
* @magentoDataFixture Magento/CatalogDataExporter/_files/setup_simple_products_with_multiple_websites.php
43+
* @magentoDataFixture Magento_CatalogDataExporter::Test/_files/setup_simple_products_with_multiple_websites.php
4444
*
4545
* @param array $testData
4646
* @return void
@@ -75,7 +75,7 @@ public function testSimpleProductsOnSave(array $testData) : void
7575
*
7676
* @magentoDbIsolation disabled
7777
* @magentoAppIsolation enabled
78-
* @magentoDataFixture Magento/CatalogDataExporter/_files/setup_simple_products_with_multiple_websites.php
78+
* @magentoDataFixture Magento_CatalogDataExporter::Test/_files/setup_simple_products_with_multiple_websites.php
7979
*
8080
* @param array $skus
8181
* @param array $websitesToUnassign
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Magento\TestFramework\Workaround\Override\Fixture\Resolver;
1010
use Magento\Store\Api\WebsiteRepositoryInterface;
1111

12-
Resolver::getInstance()->requireDataFixture('Magento/CatalogDataExporter/_files/setup_two_stores_and_two_websites.php');
12+
Resolver::getInstance()->requireDataFixture('Magento_CatalogDataExporter::Test/_files/setup_two_stores_and_two_websites.php');
1313

1414
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
1515

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,5 @@
3333

3434
$registry->unregister('isSecureArea');
3535
$registry->register('isSecureArea', false);
36-
Resolver::getInstance()->requireDataFixture(
37-
'Magento/CatalogDataExporter/_files/setup_two_stores_and_two_websites_rollback.php'
36+
Resolver::getInstance()->requireDataFixture('Magento_CatalogDataExporter::Test/_files/setup_two_stores_and_two_websites_rollback.php'
3837
);

0 commit comments

Comments
 (0)