/** * buildRequestXmlForGlobalCollect * * @todo * - there are many cases to this that need to be developed. * - Do not consider this a complete test! * * @covers GatewayAdapter::__construct * @covers GatewayAdapter::setCurrentTransaction * @covers GatewayAdapter::buildRequestXML */ public function buildRequestXmlForGlobalCollect($optionsForTestData, $options) { global $wgGlobalCollectGatewayTest; $wgGlobalCollectGatewayTest = true; $this->gatewayAdapter = new GlobalCollectTestAdapter($options); $this->gatewayAdapter->setCurrentTransaction('INSERT_ORDERWITHPAYMENT'); $request = trim($this->gatewayAdapter->executeBuildRequestXML()); $expected = $this->getExpectedXmlRequestForGlobalCollect($optionsForTestData, $options); $this->assertEquals($expected, $request, 'The constructed XML for payment_method [' . $optionsForTestData['payment_method'] . '] and payment_submethod [' . $optionsForTestData['payment_submethod'] . '] does not match our expected request.'); }