public function testGetCcYears() { $data = [1, 2, 3]; $this->configMock->expects($this->once())->method('getYears')->willReturn($data); $this->assertEquals($data, $this->model->getCcYears()); }
/** * Retrieve credit card expire years * * @return array */ protected function getCcYears() { return $this->ccConfig->getCcYears(); }