示例#1
0
 /**
  * @magentoDataFixture Magento/Sales/_files/order_alphanumeric_id.php
  */
 public function testIsOrderIncrementIdUsedAlphanumericIncrementId()
 {
     $this->assertTrue($this->_resourceModel->isOrderIncrementIdUsed('M00000001'));
 }
示例#2
0
 /**
  * @param $value
  * @dataProvider isOrderIncrementIdUsedDataProvider
  */
 public function testIsOrderIncrementIdUsed($value)
 {
     $expectedBind = [':increment_id' => $value];
     $this->adapterMock->expects($this->once())->method('fetchOne')->with($this->selectMock, $expectedBind);
     $this->model->isOrderIncrementIdUsed($value);
 }