public function testGetCvvImageUrl() { $params = ['_secure' => true]; $fileId = 'Magento_Checkout::cvv.png'; $fileUrl = 'file url'; $this->requestMock->expects($this->once())->method('isSecure')->willReturn(true); $this->repositoryMock->expects($this->once())->method('getUrlWithParams')->with($fileId, $params)->willReturn($fileUrl); $this->assertEquals($fileUrl, $this->model->getCvvImageUrl()); }
/** * Retrieve CVV tooltip image url * * @return string */ protected function getCvvImageUrl() { return $this->ccConfig->getCvvImageUrl(); }
/** * Retrieve the cvv image from ccconfig * * @return string */ public function getCvvImageUrl() { return $this->ccConfig->getCvvImageUrl(); }