Index: trunk/extensions/DonationInterface/tests/Adapter/GlobalCollect/RealTimeBankTransferEnetsTestCase.php |
— | — | @@ -0,0 +1,58 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Wikimedia Foundation |
| 5 | + * |
| 6 | + * LICENSE |
| 7 | + * |
| 8 | + * This program is free software; you can redistribute it and/or modify |
| 9 | + * it under the terms of the GNU General Public License as published by |
| 10 | + * the Free Software Foundation; either version 2 of the License, or |
| 11 | + * (at your option) any later version. |
| 12 | + * |
| 13 | + * This program is distributed in the hope that it will be useful, |
| 14 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | + * GNU General Public License for more details. |
| 17 | + * |
| 18 | + * @since r98249 |
| 19 | + * @author Jeremy Postlethwaite <jpostlethwaite@wikimedia.org> |
| 20 | + */ |
| 21 | + |
| 22 | +/** |
| 23 | + * @see DonationInterfaceTestCase |
| 24 | + */ |
| 25 | +require_once dirname( dirname( dirname( __FILE__ ) ) ) . DIRECTORY_SEPARATOR . 'DonationInterfaceTestCase.php'; |
| 26 | + |
| 27 | +/** |
| 28 | + * |
| 29 | + * @group Fundraising |
| 30 | + * @group Gateways |
| 31 | + * @group DonationInterface |
| 32 | + * @group GlobalCollect |
| 33 | + * @group RealTimeBankTransfer |
| 34 | + */ |
| 35 | +class DonationInterface_Adapter_GlobalCollect_RealTimeBankTransferEnetsTestCase extends DonationInterfaceTestCase { |
| 36 | + |
| 37 | + /** |
| 38 | + * testBuildRequestXml |
| 39 | + * |
| 40 | + * @covers GatewayAdapter::__construct |
| 41 | + * @covers GatewayAdapter::currentTransaction |
| 42 | + * @covers GatewayAdapter::buildRequestXML |
| 43 | + * @covers GatewayAdapter::getData |
| 44 | + */ |
| 45 | + public function testBuildRequestXml() { |
| 46 | + |
| 47 | + $optionsForTestData = array( |
| 48 | + 'form_name' => 'TwoStepAmount', |
| 49 | + 'payment_method' => 'rtbt', |
| 50 | + 'payment_submethod' => 'rtbt_enets', |
| 51 | + 'payment_product_id' => 810, |
| 52 | + ); |
| 53 | + |
| 54 | + $options = $this->getGatewayAdapterTestDataFromSpain( $optionsForTestData ); |
| 55 | + |
| 56 | + $this->buildRequestXmlForGlobalCollect( $optionsForTestData, $options ); |
| 57 | + } |
| 58 | +} |
| 59 | + |
Property changes on: trunk/extensions/DonationInterface/tests/Adapter/GlobalCollect/RealTimeBankTransferEnetsTestCase.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 60 | + native |
Added: svn:mime-type |
2 | 61 | + text/plain |
Added: svn:keywords |
3 | 62 | + Author Date HeadURL Header Id Revision |