Example #1
0
 /**
  * Check allow to send new order confirmation email
  *
  * @return bool
  */
 public function canSendNewOrderConfirmationEmail()
 {
     return $this->_salesData->canSendNewOrderConfirmationEmail($this->getQuote()->getStoreId());
 }
Example #2
0
 /**
  * @dataProvider getScopeConfigValue
  */
 public function testCanSendNewOrderConfirmationEmail($scopeConfigValue)
 {
     $this->setupScopeConfigIsSetFlag(\Magento\Sales\Model\Order\Email\Container\OrderIdentity::XML_PATH_EMAIL_ENABLED, $scopeConfigValue);
     $this->assertEquals($scopeConfigValue, $this->helper->canSendNewOrderConfirmationEmail($this->storeMock));
 }