function SetUp(DataForm $DF) { // User input and initialized by EPP-DRS in real test $TestConf = AfiliasRegistryModule::GetTestConfigurationForm(); $test_conf = $TestConf->ListFields(); $test_conf['RegistrarID']->Value = '5080-BD'; $test_conf['ServerHost']->Value = 'inforfcote2.afilias.net'; $test_conf['ServerPort']->Value = '700'; $test_conf['Login-1']->Value = 'ClientB'; $test_conf['Password-1']->Value = 'foo-BAR2'; $test_conf['Password-1n']->Value = 'bar-FOO2'; // New password // Initialize registry $ModuleConf = AfiliasRegistryModule::GetConfigurationForm(); $module_conf = $ModuleConf->ListFields(); $module_conf['RegistrarID']->Value = $test_conf['RegistrarID']->Value; $module_conf['ServerHost']->Value = $test_conf['ServerHost']->Value; $module_conf['ServerPort']->Value = $test_conf['ServerPort']->Value; $module_conf['Login']->Value = $test_conf['Login-1']->Value; $module_conf['Password']->Value = $test_conf['Password-1']->Value; $module_conf['SSLCertPath']->Value = $DF->GetFieldByName('SSLCertPath')->Value; $module_conf['SSLCertPass']->Value = $DF->GetFieldByName('SSLCertPass')->Value; $manifest_path = MODULES_PATH . "/registries/Afilias/module.xml"; $this->Module = new AfiliasRegistryModule(new RegistryManifest($manifest_path)); $this->Module->InitializeModule("info", $ModuleConf); $this->Registry = new Registry($this->Module); $this->module_conf = $module_conf; $this->test_conf = $test_conf; $this->C2 = $this->Registry->NewContactInstance(CONTACT_TYPE::REGISTRANT); $this->C2->CLID = 'EPPOTE-C2'; $this->C3 = $this->Registry->NewContactInstance(CONTACT_TYPE::ADMIN); $this->C3->CLID = 'EPPOTE-C3'; $this->C4 = $this->Registry->NewContactInstance(CONTACT_TYPE::BILLING); $this->C4->CLID = 'EPPOTE-C4'; $this->C5 = $this->Registry->NewContactInstance(CONTACT_TYPE::TECH); $this->C5->CLID = 'EPPOTE-C5'; $this->NSList = array(new Nameserver('ns1.eppvalid.info'), new Nameserver('ns2.eppvalid.info')); }