runs › 7aa5002e33e5 › Bundle/Model/ResourceModel

Bundle/Model/ResourceModel 20 tests · 1 failing · 0 skipped · 02:02

testsecondshistory
Magento.Bundle.Model.ResourceModel.Indexer.PriceTest::testBundleDynamicPriceWhenShowOutOfStockIsDisabled
details

deterministic 6.74s

Magento\Bundle\Model\ResourceModel\Indexer\PriceTest::testBundleDynamicPriceWhenShowOutOfStockIsDisabled
TypeError: array_intersect_key(): Argument #2 must be of type array, null given

/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/PriceTest.php:157
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/PriceTest.php:84
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/PriceTest.php:80–104
<?php
        DataFixture(BundleProductFixture::class, ['_options' => ['$opt2_1$', '$opt2_2$']], 'bundle2'),
    ]
    public function testBundleDynamicPriceWhenShowOutOfStockIsDisabled(): void
    {
        $this->assertPriceData([
            // bundle1: required option1 (product1) + required option2 (product2, product3)
            // bundle1 is in stock: product3 is out of stock, but product2 is in stock in option2
            // expected: the price range includes only available selections
            'bundle1' => [
                'min_price' => 13,
                'max_price' => 13
            ],
            // bundle2: required option1 (product1) + required option2 (product3, product4)
            // bundle2 is out of stock: both product3 and product4 are out of stock
            // expected: no price data
            'bundle2' => null
        ]);
    }

    #[
        DbIsolation(false),
        Config('cataloginventory/options/show_out_of_stock', 1, 'store'),
        DataFixture(ProductFixture::class, ['price' => 10], 'product1'),
        DataFixture(ProductFixture::class, ['price' => 3], 'product2'),
        DataFixture(ProductFixture::class, ['price' => 5, 'stock_item' => ['qty' => 0]], 'product3'),
6.74
Magento.Bundle.Model.ResourceModel.Indexer.PriceTest::testBundleDynamicPriceWhenShowOutOfStockIsEnabled3.08
Magento.Bundle.Model.ResourceModel.Indexer.PriceTest::testExecuteForBundleWithoutWebsites0.17
Magento.Bundle.Model.ResourceModel.Indexer.StockTest::testReindexAll2.30
Magento.Bundle.Model.ResourceModel.Indexer.StockTest::testReindexRow with data set #01.60
Magento.Bundle.Model.ResourceModel.Indexer.StockTest::testReindexRow with data set #11.27
Magento.Bundle.Model.ResourceModel.Indexer.StockTest::testReindexRow with data set #20.95
Magento.Bundle.Model.ResourceModel.Indexer.StockTest::testReindexRow with data set #31.16
Magento.Bundle.Model.ResourceModel.Indexer.StockTest::testReindexRow with data set #40.82
Magento.Bundle.Model.ResourceModel.Indexer.StockTest::testReindexRow with data set #51.32
Magento.Bundle.Model.ResourceModel.Indexer.StockTest::testReindexRow with data set #61.65
Magento.Bundle.Model.ResourceModel.Option.AreBundleOptionsSalableTest::testExecute with data set #08.77
Magento.Bundle.Model.ResourceModel.Option.AreBundleOptionsSalableTest::testExecute with data set #19.83
Magento.Bundle.Model.ResourceModel.Option.AreBundleOptionsSalableTest::testExecute with data set #210.51
Magento.Bundle.Model.ResourceModel.Option.AreBundleOptionsSalableTest::testExecute with data set #310.03
Magento.Bundle.Model.ResourceModel.Option.AreBundleOptionsSalableTest::testExecute with data set #412.18
Magento.Bundle.Model.ResourceModel.Option.AreBundleOptionsSalableTest::testExecute with data set #511.69
Magento.Bundle.Model.ResourceModel.Option.AreBundleOptionsSalableTest::testExecute with data set #616.71
Magento.Bundle.Model.ResourceModel.Option.AreBundleOptionsSalableTest::testExecute with data set #716.64
Magento.Bundle.Model.ResourceModel.Selection.CollectionTest::testAddPriceDataWithIndexerDimensionMode with data set "Dynamic bundle product with three Simple products"5.05