| test | seconds | history |
|---|
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are optional"detailsdeterministic 0.96s Magento\BundleImportExport\Model\Import\Product\Type\BundleTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are optional"
Failed asserting that false is true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/Product/Type/BundleTest.php:338 /srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/Product/Type/BundleTest.php:310–334 <?php
*/
#[DataProvider('shouldUpdateBundleStockStatusIfChildProductsStockStatusChangedDataProvider')]
public function testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged(
bool $isOption1Required,
bool $isOption2Required,
string $outOfStockImportFile,
string $inStockImportFile
): void {
// import data from CSV file
$pathToFile = __DIR__ . '/../../_files/import_bundle.csv';
$errors = $this->doImport($pathToFile, Import::BEHAVIOR_APPEND);
$this->assertEquals(0, $errors->getErrorsCount());
$this->importedProductSkus = ['Simple 1', 'Simple 2', 'Simple 3', 'Bundle 1'];
$sku = 'Bundle 1';
/** @var ProductRepositoryInterface $productRepository */
$productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
/** @var ProductInterface $product */
$product = $productRepository->get($sku, true, null, true);
$options = $product->getExtensionAttributes()->getBundleProductOptions();
$options[0]->setRequired($isOption1Required);
$options[1]->setRequired($isOption2Required);
$extension = $product->getExtensionAttributes();
$extension->setBundleProductOptions($options);
$product->setExtensionAttributes($extension);
$productRepository->save($product);
| 0.96 | |
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are required"detailsdeterministic 1.81s Magento\BundleImportExport\Model\Import\Product\Type\BundleTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are required"
Failed asserting that false is true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/Product/Type/BundleTest.php:338 /srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/Product/Type/BundleTest.php:310–334 <?php
*/
#[DataProvider('shouldUpdateBundleStockStatusIfChildProductsStockStatusChangedDataProvider')]
public function testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged(
bool $isOption1Required,
bool $isOption2Required,
string $outOfStockImportFile,
string $inStockImportFile
): void {
// import data from CSV file
$pathToFile = __DIR__ . '/../../_files/import_bundle.csv';
$errors = $this->doImport($pathToFile, Import::BEHAVIOR_APPEND);
$this->assertEquals(0, $errors->getErrorsCount());
$this->importedProductSkus = ['Simple 1', 'Simple 2', 'Simple 3', 'Bundle 1'];
$sku = 'Bundle 1';
/** @var ProductRepositoryInterface $productRepository */
$productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
/** @var ProductInterface $product */
$product = $productRepository->get($sku, true, null, true);
$options = $product->getExtensionAttributes()->getBundleProductOptions();
$options[0]->setRequired($isOption1Required);
$options[1]->setRequired($isOption2Required);
$extension = $product->getExtensionAttributes();
$extension->setBundleProductOptions($options);
$product->setExtensionAttributes($extension);
$productRepository->save($product);
| 1.81 | |
| Magento.BundleImportExport.Model.BundleTest::testImportExport with data set "bundle-product-multi-options" | 8.68 | |
| Magento.BundleImportExport.Model.BundleTest::testImportExportWithPagination with data set "bundle-product-multi-options" | 13.31 | |
| Magento.BundleImportExport.Model.Export.RowCustomizerTest::testExportWhenPriceScopeIsWebsite | 13.10 | |
| Magento.BundleImportExport.Model.Export.RowCustomizerTest::testPrepareData | 2.27 | |
| Magento.BundleImportExport.Model.Export.RowCustomizerTest::testPrepareDataWithDifferentStoreValues | 10.22 | |
| Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImport | 1.09 | |
| Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImportUpdateValues with data set #0 | 2.78 | |
| Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImportUpdateValuesWithQuestionMark | 1.92 | |
| Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImportWithMultipleStoreViews | 6.87 | |
| Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testImportWhenPriceScopeIsWebsite | 2.85 | |