Skip to content

Commit

Permalink
Merge pull request #2931 from vadimjustus/inventory-2876-hard-coded-f…
Browse files Browse the repository at this point in the history
…ixture-paths

MSI-2876: Change all fixture paths to module namespace path
  • Loading branch information
sidolov authored Apr 5, 2020
2 parents 841771d + 5dc6689 commit c8d37f1
Show file tree
Hide file tree
Showing 154 changed files with 1,647 additions and 1,639 deletions.
2 changes: 1 addition & 1 deletion Inventory/Test/Integration/CreateStockTableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/stocks.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/stocks.php
* @magentoDbIsolation disabled
*/
public function testExecute()
Expand Down
6 changes: 3 additions & 3 deletions Inventory/Test/Integration/GetSourceCodesBySkusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ protected function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/source_items.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/products.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/source_items.php
*/
public function testExecute()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ protected function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/stocks.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/stock_source_links.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/stocks.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/stock_source_links.php
*/
public function testProcess()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
*
* @dataProvider getStockDataProvider
* @param string $sku
Expand All @@ -49,7 +49,7 @@ public function testGetStatusIfScopeIdParameterIsNotPassed(string $sku, int $sta
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
*
* @dataProvider getStockDataProvider
* @param string $sku
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
*
* @dataProvider getStockDataProvider
* @param string $sku
Expand All @@ -57,7 +57,7 @@ public function testGetStatusIfScopeIdParameterIsNotPassed(string $sku, int $sta
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
*
* @dataProvider getStockDataProvider
* @param string $sku
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
*
* @dataProvider getStockDataProvider
* @param string $sku
Expand All @@ -50,7 +50,7 @@ public function testGetStatusIfScopeIdParameterIsNotPassed(string $sku, int $sta
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
*
* @dataProvider getStockDataProvider
* @param string $sku
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
*
* @dataProvider getStockDataProvider
* @param string $sku
Expand All @@ -58,7 +58,7 @@ public function testGetStatusIfScopeIdParameterIsNotPassed(string $sku, int $sta
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
*
* @dataProvider getStockDataProvider
* @param string $sku
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
/**
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/source_items_for_bundle_options_on_default_source.php
* @magentoDataFixture ../../../../app/code/Magento/InventorySalesApi/Test/_files/quote.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryIndexer/Test/_files/reindex_inventory.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/source_items_for_bundle_options_on_default_source.php
* @magentoDataFixture Magento_InventorySalesApi::Test/_files/quote.php
* @magentoDataFixture Magento_InventoryIndexer::Test/_files/reindex_inventory.php
*/
class PlaceOrderOnDefaultStockTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ protected function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryIndexer/Test/_files/reindex_inventory.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryIndexer::Test/_files/reindex_inventory.php
*/
public function testAddOutOfStockProductToQuote()
{
Expand All @@ -77,8 +77,8 @@ public function testAddOutOfStockProductToQuote()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/default_stock_bundle_products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryIndexer/Test/_files/reindex_inventory.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/default_stock_bundle_products.php
* @magentoDataFixture Magento_InventoryIndexer::Test/_files/reindex_inventory.php
*/
public function testAddInStockProductToQuote()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ protected function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventorySalesApi/Test/_files/websites_with_stores.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/product_bundle.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/stocks.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/stock_source_links.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/source_items_bundle.php
* @magentoDataFixture ../../../../app/code/Magento/InventorySalesApi/Test/_files/stock_website_sales_channels.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryIndexer/Test/_files/reindex_inventory.php
* @magentoDataFixture Magento_InventorySalesApi::Test/_files/websites_with_stores.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/product_bundle.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/stocks.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/stock_source_links.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/source_items_bundle.php
* @magentoDataFixture Magento_InventorySalesApi::Test/_files/stock_website_sales_channels.php
* @magentoDataFixture Magento_InventoryIndexer::Test/_files/reindex_inventory.php
* @magentoDbIsolation disabled
*/
public function testAddInStockProductToQuote()
Expand All @@ -102,15 +102,15 @@ public function testAddInStockProductToQuote()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventorySalesApi/Test/_files/websites_with_stores.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/product_bundle.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/stocks.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/stock_source_links.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/source_items_bundle.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryBundleProduct/Test/_files/set_product_bundle_out_of_stock.php
* @magentoDataFixture ../../../../app/code/Magento/InventorySalesApi/Test/_files/stock_website_sales_channels.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryIndexer/Test/_files/reindex_inventory.php
* @magentoDataFixture Magento_InventorySalesApi::Test/_files/websites_with_stores.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/product_bundle.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/stocks.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/stock_source_links.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/source_items_bundle.php
* @magentoDataFixture Magento_InventoryBundleProduct::Test/_files/set_product_bundle_out_of_stock.php
* @magentoDataFixture Magento_InventorySalesApi::Test/_files/stock_website_sales_channels.php
* @magentoDataFixture Magento_InventoryIndexer::Test/_files/reindex_inventory.php
* @magentoDbIsolation disabled
*/
public function testAddOutOffStockProductToQuote()
Expand Down
32 changes: 16 additions & 16 deletions InventoryCatalog/Test/Integration/Bulk/InventoryTransferTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright :copyright: Magento, Inc. All rights reserved.
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
Expand Down Expand Up @@ -86,9 +86,9 @@ private function getSourceItem(string $sku, string $sourceCode): ?SourceItemInte
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/source_items.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/products.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/source_items.php
* @magentoDbIsolation enabled
*/
public function testBulkInventoryTransferAndUnassign()
Expand All @@ -113,9 +113,9 @@ public function testBulkInventoryTransferAndUnassign()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/source_items.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/products.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/source_items.php
* @magentoDbIsolation enabled
*/
public function testBulkInventoryTransferWithOutOfStockOrigin()
Expand Down Expand Up @@ -147,9 +147,9 @@ public function testBulkInventoryTransferWithOutOfStockOrigin()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/source_items.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/products.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/source_items.php
* @magentoDbIsolation enabled
*/
public function testBulkInventoryTransferToNewSource()
Expand Down Expand Up @@ -187,9 +187,9 @@ public function testBulkInventoryTransferToNewSource()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/source_items.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/products.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/source_items.php
* @magentoDbIsolation enabled
*/
public function testBulkInventoryTransferFromUnassignedOriginSource()
Expand Down Expand Up @@ -221,9 +221,9 @@ public function testBulkInventoryTransferFromUnassignedOriginSource()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/source_items.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/products.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/source_items.php
* @magentoDbIsolation enabled
*/
public function testBulkInventoryTransferToAssignedSource()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright :copyright: Magento, Inc. All rights reserved.
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
Expand Down Expand Up @@ -33,7 +33,7 @@ public function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
*/
public function testNotExistingSources()
{
Expand Down Expand Up @@ -66,7 +66,7 @@ public function testNotExistingSources()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
*/
public function testExistingSources()
{
Expand All @@ -86,7 +86,7 @@ public function testExistingSources()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
*/
public function testNonSenseTransfer()
{
Expand Down
12 changes: 6 additions & 6 deletions InventoryCatalog/Test/Integration/Bulk/SourceAssignTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright :copyright: Magento, Inc. All rights reserved.
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
Expand Down Expand Up @@ -59,9 +59,9 @@ private function getSourceItemCodesBySku(string $sku): array
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryCatalog/Test/_files/source_items_on_default_source.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/products.php
* @magentoDataFixture Magento_InventoryCatalog::Test/_files/source_items_on_default_source.php
* @magentoDbIsolation enabled
*/
public function testBulkSourceAssignment()
Expand Down Expand Up @@ -119,8 +119,8 @@ public function testBulkSourceAssignment()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryCatalog/Test/_files/products_all_types.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryCatalog::Test/_files/products_all_types.php
* @magentoDbIsolation enabled
*/
public function testBulkSourceAssignmentOnMixedProducts()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright :copyright: Magento, Inc. All rights reserved.
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
Expand All @@ -25,7 +25,7 @@ public function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
*/
public function testSourceValidator()
{
Expand Down
8 changes: 4 additions & 4 deletions InventoryCatalog/Test/Integration/Bulk/SourceUnassignTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright :copyright: Magento, Inc. All rights reserved.
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
Expand Down Expand Up @@ -59,9 +59,9 @@ private function getSourceItemCodesBySku(string $sku): array
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/source_items.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/products.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/source_items.php
* @magentoDbIsolation enabled
*/
public function testBulkSourceUnassignment()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright :copyright: Magento, Inc. All rights reserved.
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
Expand All @@ -25,7 +25,7 @@ public function setUp()
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/sources.php
* @magentoDataFixture Magento_InventoryApi::Test/_files/sources.php
*/
public function testSourceValidator()
{
Expand Down
Loading

0 comments on commit c8d37f1

Please sign in to comment.