/** * @magentoDataFixture Magento/Sales/_files/order_alphanumeric_id.php */ public function testIsOrderIncrementIdUsedAlphanumericIncrementId() { $this->assertTrue($this->_resourceModel->isOrderIncrementIdUsed('M00000001')); }
/** * @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); }