Example #1
0
 /**
  * testFunctionality
  * 
  * Test basic class functionality
  */
 public function testFunctionality()
 {
     $fragment = new Product();
     $fragment->setModuleCode('ModuleCode')->setMethodCode('MethodCode');
     $this->assertEquals($fragment->getModuleCode(), 'ModuleCode');
     $this->assertEquals($fragment->getMethodCode(), 'MethodCode');
     $expectedXml = '<ShippingMethod module_code="ModuleCode" method_code="MethodCode" />';
 }