runs4a1c3de3f33d › BundleImportExport

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

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

deterministic 1.338s

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);
1.34
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are required"
details

deterministic 1.626s

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.63
Magento.BundleImportExport.Model.BundleTest::testImportExport with data set "bundle-product-multi-options"7.72
Magento.BundleImportExport.Model.BundleTest::testImportExportWithPagination with data set "bundle-product-multi-options"11.56
Magento.BundleImportExport.Model.Export.RowCustomizerTest::testExportWhenPriceScopeIsWebsite11.80
Magento.BundleImportExport.Model.Export.RowCustomizerTest::testPrepareData2.95
Magento.BundleImportExport.Model.Export.RowCustomizerTest::testPrepareDataWithDifferentStoreValues12.91
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImport1.48
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImportUpdateValues with data set #03.60
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImportUpdateValuesWithQuestionMark1.62
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testBundleImportWithMultipleStoreViews7.31
Magento.BundleImportExport.Model.Import.Product.Type.BundleTest::testImportWhenPriceScopeIsWebsite3.78