helper = $objectManagerHelper->getObject(\Magento\Ups\Helper\Config::class); } /** * @param mixed $result * @param null|string $type * @param string $code * @dataProvider getCodeDataProvider */ public function testGetData($result, $type = null, $code = null) { $this->assertEquals($result, $this->helper->getCode($type, $code)); } /** * Data provider * * @return array */ public function getCodeDataProvider() { return [ [false], [false, 'not-exist-type'], [false, 'not-exist-type', 'not-exist-code'], [false, 'action'], [['single' => '3', 'all' => '4'], 'action', ''], ['3', 'action', 'single'] ]; } }