Beispiel #1
0
 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());
 }
Beispiel #2
0
 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());
 }