Пример #1
0
 public function testGetVariablesOptionArrayInGroup()
 {
     $testTemplateVariables = '{"var data.name":"Sender Name","var data.email":"Sender Email"}';
     $this->_model->setOrigTemplateVariables($testTemplateVariables);
     $variablesOptionArray = $this->_model->getVariablesOptionArray(true);
     $this->assertEquals('Template Variables', $variablesOptionArray['label']->getText());
     $this->assertEquals($this->_model->getVariablesOptionArray(), $variablesOptionArray['value']);
 }