/** * @param array $groupIds * @param string $mode show | hide * @dataProvider dataProvider */ public function testApplyConfigModeSetting($groupIds, $mode) { $expected = $this->expected('%s-%s', $mode, implode('', $groupIds))->getGroupIds(); $result = $this->_helper->applyConfigModeSetting($groupIds, $mode); $message = sprintf('Apply mode "%s" to group ids "%s" is expected to result in "%s" but was "%s"', $mode, implode(',', $groupIds), implode(',', $expected), implode(',', $result)); $this->assertEquals($expected, $result, $message); }
/** * Initialize list of customer group ids * * @return void */ protected function _initGroupIds() { $this->_groupIds = $this->_helper->getCustomerGroupIds(); $this->_groupIds[] = Netzarbeiter_GroupsCatalog2_Helper_Data::USE_NONE; }