public function testResolveAttributeStringToMergeTagString()
 {
     $expectedString = '[[FIRST^NAME]]';
     $string = MergeTagsUtil::resolveAttributeStringToMergeTagString('firstName');
     $this->assertEquals($expectedString, $string);
     $expectedString = '[[NAME]]';
     $string = MergeTagsUtil::resolveAttributeStringToMergeTagString('name');
     $this->assertEquals($expectedString, $string);
     $expectedString = '[[ACCOUNT__FIRST^NAME]]';
     $string = MergeTagsUtil::resolveAttributeStringToMergeTagString('Account___firstName');
     $this->assertEquals($expectedString, $string);
     $expectedString = '[[ACCOUNT__PRIMARY^ADDRESS__STREET1]]';
     $string = MergeTagsUtil::resolveAttributeStringToMergeTagString('Account___primaryAddress___street1');
     $this->assertEquals($expectedString, $string);
     $expectedString = '[[ACCOUNT__PRIMARY^ADDRESS__STREET1_ADDRESS]]';
     $string = MergeTagsUtil::resolveAttributeStringToMergeTagString('Account___primaryAddress___street1_address');
     $this->assertEquals($expectedString, $string);
 }
 /**
  * Override as needed
  * @param $attributeNode
  * @param $attribute
  * @param $nodeIdPrefix
  */
 protected function resolveChildNodeDataValueForAttributeNode(&$attributeNode, $attribute, $nodeIdPrefix)
 {
     $attributeNode['dataValue'] = MergeTagsUtil::resolveAttributeStringToMergeTagString($nodeIdPrefix . $attribute);
 }
 public static function resolveGlobalMarketingFooterMergeTag($suffix = null)
 {
     return MergeTagsUtil::resolveAttributeStringToMergeTagString('globalMarketingFooter' . $suffix);
 }