runs4806b67a1eff › BundleImportExport

BundleImportExport 12 tests · 2 failing · 0 skipped · 01:05

testsecondshistory
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are optional"
details

deterministic 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"
details

deterministic 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::testExportWhenPriceScopeIsWebsite13.10
Magento.BundleImportExport.Model.Export.RowCustomizerTest::testPrepareData2.27
Magento.BundleImportExport.Model.Export.RowCustomizerTest::testPrepareDataWithDifferentStoreValues10.22
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImport1.09
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImportUpdateValues with data set #02.78
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImportUpdateValuesWithQuestionMark1.92
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImportWithMultipleStoreViews6.87
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testImportWhenPriceScopeIsWebsite2.85