3737use Magento \TestFramework \Fixture \DataFixtureStorageManager ;
3838use Magento \TestFramework \Fixture \DbIsolation ;
3939use Magento \TestFramework \Helper \Bootstrap ;
40+ use Magento \TestFramework \MessageQueue \ClearQueueProcessor ;
4041use PHPUnit \Framework \TestCase ;
4142
4243class UpdateIndexSalabilityStatusTest extends TestCase
@@ -56,6 +57,18 @@ class UpdateIndexSalabilityStatusTest extends TestCase
5657 */
5758 private $ getStockItemData ;
5859
60+ /**
61+ * @var ClearQueueProcessor
62+ */
63+ private static $ clearQueueProcessor ;
64+
65+ public static function setUpBeforeClass (): void
66+ {
67+ $ objectManager = Bootstrap::getObjectManager ();
68+ self ::$ clearQueueProcessor = $ objectManager ->get (ClearQueueProcessor::class);
69+ self ::$ clearQueueProcessor ->execute ('inventory.reservations.updateSalabilityStatus ' );
70+ }
71+
5972 protected function setUp (): void
6073 {
6174 $ this ->fixtures = DataFixtureStorageManager::getStorage ();
@@ -97,7 +110,6 @@ protected function setUp(): void
97110 ]
98111 public function testProductsStatusesAfterBuyingChildProduct (): void
99112 {
100- $ this ->markTestSkipped ("AC-10695 " );
101113 /** @var StockInterface $stock */
102114 $ stock = $ this ->fixtures ->get ('stock2 ' );
103115
@@ -145,7 +157,6 @@ public function testProductsStatusesAfterBuyingChildProduct(): void
145157 ]
146158 public function testProductsStatusesAfterBuyingBundleProduct (): void
147159 {
148- $ this ->markTestSkipped ("AC-10695 " );
149160 /** @var StockInterface $stock */
150161 $ stock = $ this ->fixtures ->get ('stock2 ' );
151162
0 commit comments