/** * @param string $name * @param array $cctypes * @param boolean|string $expected * @dataProvider getCcTypeCodeByNameDataProvider */ public function testGetCcTypeCodeByName($name, $cctypes, $expected) { $this->paymentConfig->expects($this->any())->method('getCcTypes')->willReturn($cctypes); $result = $this->model->GetCcTypeCodeByName($name); $this->assertEquals($expected, $result); }