function save() { if ($this->getFieldsetDataValue('active')) { $merchantId = $this->getFieldsetDataValue("merchant_id"); Litle_CreditCard_Model_ValidateMerchantId::validate($merchantId); } return parent::save(); }
/** * @dataProvider providerBaseCurrencyNotInMap */ public function testBaseCurrencyNotInMap($input) { $this->setExpectedException('Mage_Core_Exception', 'Please Make sure that the Base Currency: USD is in the Merchant ID Array'); Litle_CreditCard_Model_ValidateMerchantId::validate($input); }