| test | seconds | history |
|---|
Magento.Bundle.Model.ProductTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are required"detailsdeterministic 0.951s @magentoDataFixture Magento/Bundle/_files/bundle_product_with_dynamic_price.php Magento\Bundle\Model\ProductTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are required"
Failed asserting that false is true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ProductTest.php:312 /srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ProductTest.php:273–297 <?php
*/
#[DataProvider('shouldUpdateBundleStockStatusIfChildProductsStockStatusChangedDataProvider')]
public function testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged(
bool $isOption1Required,
bool $isOption2Required,
array $outOfStockConfig,
array $inStockConfig
): void {
$sku = 'bundle_product_with_dynamic_price';
/** @var ProductRepositoryInterface $productRepository */
$productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
/** @var ProductInterface $product */
$product = $productRepository->get($sku, true, null, true);
$extension = $product->getExtensionAttributes();
$options = $extension->getBundleProductOptions();
$options[0]->setRequired($isOption1Required);
$options[1]->setRequired($isOption2Required);
$extension->setBundleProductOptions($options);
$stockItem = $extension->getStockItem();
$stockItem->setUseConfigManageStock(1);
$product->setExtensionAttributes($extension);
$productRepository->save($product);
$stockItem = $this->getStockItem((int) $product->getId());
$this->assertNotNull($stockItem);
| 0.95 | |
| Magento.Bundle.Model.ProductTest::testCRUD | 2.10 | |
| Magento.Bundle.Model.ProductTest::testGetPriceModel | 0.05 | |
| Magento.Bundle.Model.ProductTest::testGetSetTypeInstance | 0.13 | |
| Magento.Bundle.Model.ProductTest::testIsComposite | 0.05 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 0 manageStock: backorders: 0" | 0.67 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 0 manageStock: backorders: 1" | 1.14 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 0 manageStock: backorders: 2" | 1.25 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 0 manageStock: 1 backorders: 0" | 1.22 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 0 manageStock: 1 backorders: 1" | 1.16 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 0 manageStock: 1 backorders: 2" | 1.04 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 1 manageStock: backorders: 0" | 0.82 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 1 manageStock: backorders: 1" | 0.80 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 1 manageStock: backorders: 2" | 1.70 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 1 manageStock: 1 backorders: 0" | 0.96 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 1 manageStock: 1 backorders: 1" | 1.08 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 0 isInStock: 1 manageStock: 1 backorders: 2" | 1.06 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 0 manageStock: backorders: 0" | 0.66 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 0 manageStock: backorders: 1" | 0.81 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 0 manageStock: backorders: 2" | 0.75 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 0 manageStock: 1 backorders: 0" | 1.02 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 0 manageStock: 1 backorders: 1" | 0.69 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 0 manageStock: 1 backorders: 2" | 0.68 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 1 manageStock: backorders: 0" | 0.63 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 1 manageStock: backorders: 1" | 0.69 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 1 manageStock: backorders: 2" | 0.58 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 1 manageStock: 1 backorders: 0" | 0.68 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 1 manageStock: 1 backorders: 1" | 0.75 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 10 qty: 10 isInStock: 1 manageStock: 1 backorders: 2" | 0.59 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 0 manageStock: backorders: 0" | 0.87 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 0 manageStock: backorders: 1" | 0.56 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 0 manageStock: backorders: 2" | 0.85 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 0 manageStock: 1 backorders: 0" | 0.86 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 0 manageStock: 1 backorders: 1" | 1.63 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 0 manageStock: 1 backorders: 2" | 0.80 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 1 manageStock: backorders: 0" | 0.97 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 1 manageStock: backorders: 1" | 0.99 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 1 manageStock: backorders: 2" | 1.96 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 1 manageStock: 1 backorders: 0" | 1.01 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 1 manageStock: 1 backorders: 1" | 0.87 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 0 isInStock: 1 manageStock: 1 backorders: 2" | 1.18 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 0 manageStock: backorders: 0" | 0.60 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 0 manageStock: backorders: 1" | 0.86 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 0 manageStock: backorders: 2" | 0.75 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 0 manageStock: 1 backorders: 0" | 1.27 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 0 manageStock: 1 backorders: 1" | 0.75 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 0 manageStock: 1 backorders: 2" | 0.61 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 1 manageStock: backorders: 0" | 0.63 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 1 manageStock: backorders: 1" | 0.73 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 1 manageStock: backorders: 2" | 0.61 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 1 manageStock: 1 backorders: 0" | 0.59 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 1 manageStock: 1 backorders: 1" | 0.62 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 15 qty: 10 isInStock: 1 manageStock: 1 backorders: 2" | 0.72 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 0 manageStock: backorders: 0" | 0.82 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 0 manageStock: backorders: 1" | 0.72 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 0 manageStock: backorders: 2" | 1.09 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 0 manageStock: 1 backorders: 0" | 0.99 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 0 manageStock: 1 backorders: 1" | 0.83 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 0 manageStock: 1 backorders: 2" | 1.33 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 1 manageStock: backorders: 0" | 1.00 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 1 manageStock: backorders: 1" | 0.88 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 1 manageStock: backorders: 2" | 1.78 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 1 manageStock: 1 backorders: 0" | 1.36 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 1 manageStock: 1 backorders: 1" | 0.76 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 0 isInStock: 1 manageStock: 1 backorders: 2" | 1.25 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 0 manageStock: backorders: 0" | 1.09 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 0 manageStock: backorders: 1" | 0.68 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 0 manageStock: backorders: 2" | 0.80 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 0 manageStock: 1 backorders: 0" | 0.76 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 0 manageStock: 1 backorders: 1" | 0.85 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 0 manageStock: 1 backorders: 2" | 0.76 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 1 manageStock: backorders: 0" | 0.56 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 1 manageStock: backorders: 1" | 0.67 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 1 manageStock: backorders: 2" | 0.56 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 1 manageStock: 1 backorders: 0" | 0.56 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 1 manageStock: 1 backorders: 1" | 0.62 | |
| Magento.Bundle.Model.ProductTest::testIsSalable with data set "selectionQty: 5 qty: 10 isInStock: 1 manageStock: 1 backorders: 2" | 0.62 | |
| Magento.Bundle.Model.ProductTest::testMultipleStores | 13.26 | |
| Magento.Bundle.Model.ProductTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are optional" | 1.42 | |