/** * @magentoDataFixture Magento/Sales/_files/order_alphanumeric_id.php */ public function testIsOrderIncrementIdUsedAlphanumericIncrementId() { $this->assertTrue($this->_resourceModel->isOrderIncrementIdUsed('M00000001')); }
/** * When applying a catalog price rule, make related quotes recollect on demand * * @return void */ public function dispatch() { $this->_quote->markQuotesRecollectOnCatalogRules(); }
/** * @param $value * @dataProvider isOrderIncrementIdUsedDataProvider */ public function testIsOrderIncrementIdUsed($value) { $expectedBind = array(':increment_id' => $value); $this->_adapterMock->expects($this->once())->method('fetchOne')->with($this->_selectMock, $expectedBind); $this->_model->isOrderIncrementIdUsed($value); }
/** * When deleting product, subtract it from all quotes quantities * * @param \Magento\Framework\Event\Observer $observer * @return void */ public function subtractQtyFromQuotes($observer) { $product = $observer->getEvent()->getProduct(); $this->_quote->substractProductFromQuotes($product); }