public function testGetApikey() { $this->mage->expects($this->once())->method("getStoreConfig")->with("payment/mollie/apikey", self::STORE_ID)->will($this->returnValue("decafbad")); $this->assertEquals("decafbad", $this->HelperData->getApiKey()); }
public function testIsNotAvailableIfDisabledInAdmin() { $this->datahelper->expects($this->once())->method("getConfig")->with("mollie", "active")->will($this->returnValue(FALSE)); $model = new Mollie_Mpm_Model_Api(); $this->assertFalse($model->isAvailable()); }