예제 #1
0
파일: DataTest.php 프로젝트: mollie/magento
 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());
 }
예제 #2
0
파일: ApiTest.php 프로젝트: mollie/magento
 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());
 }