예제 #1
0
 /**
  * @magentoDataFixture Magento/Sales/_files/order_alphanumeric_id.php
  */
 public function testIsOrderIncrementIdUsedAlphanumericIncrementId()
 {
     $this->assertTrue($this->_resourceModel->isOrderIncrementIdUsed('M00000001'));
 }
예제 #2
0
 /**
  * When applying a catalog price rule, make related quotes recollect on demand
  *
  * @return void
  */
 public function dispatch()
 {
     $this->_quote->markQuotesRecollectOnCatalogRules();
 }
예제 #3
0
 /**
  * @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);
 }
예제 #4
-1
 /**
  * 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);
 }