Example #1
0
 public function testCanSubtractQty()
 {
     $this->scopeConfigMock->expects($this->once())->method('isSetFlag')->with(Configuration::XML_PATH_CAN_SUBTRACT, \Magento\Framework\Store\ScopeInterface::SCOPE_STORE, 1)->willReturn(true);
     $this->assertTrue($this->model->canSubtractQty(1));
 }