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()); }