/** * Retrieve has verification configuration * * @param string $methodCode * @return bool */ protected function hasVerification($methodCode) { $result = $this->ccConfig->hasVerification(); $configData = $this->methods[$methodCode]->getConfigData('useccv'); if ($configData !== null) { $result = (bool) $configData; } return $result; }
public function testHasVerification() { $this->assertEquals(true, $this->model->hasVerification()); }