Index: trunk/extensions/DonationInterface/tests/Adapter/GlobalCollect/RealTimeBankTransferIdealTestCase.php |
— | — | @@ -0,0 +1,261 @@ |
| 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_RealTimeBankTransferIdealTestCase extends DonationInterfaceTestCase { |
| 36 | + |
| 37 | + /** |
| 38 | + * testBuildRequestXmlWithIssuerId21 |
| 39 | + * |
| 40 | + * Rabobank: 21 |
| 41 | + * |
| 42 | + * @covers GatewayAdapter::__construct |
| 43 | + * @covers GatewayAdapter::currentTransaction |
| 44 | + * @covers GatewayAdapter::buildRequestXML |
| 45 | + * @covers GatewayAdapter::getData |
| 46 | + */ |
| 47 | + public function testBuildRequestXmlWithIssuerId21() { |
| 48 | + |
| 49 | + $optionsForTestData = array( |
| 50 | + 'form_name' => 'TwoStepAmount', |
| 51 | + 'payment_method' => 'rtbt', |
| 52 | + 'payment_submethod' => 'rtbt_ideal', |
| 53 | + 'payment_product_id' => 809, |
| 54 | + 'issuer_id' => 21, |
| 55 | + ); |
| 56 | + |
| 57 | + $options = $this->getGatewayAdapterTestDataFromSpain( $optionsForTestData ); |
| 58 | + |
| 59 | + $this->buildRequestXmlForGlobalCollect( $optionsForTestData, $options ); |
| 60 | + } |
| 61 | + |
| 62 | + /** |
| 63 | + * testBuildRequestXmlWithIssuerId31 |
| 64 | + * |
| 65 | + * ABN AMRO: 31 |
| 66 | + * |
| 67 | + * @covers GatewayAdapter::__construct |
| 68 | + * @covers GatewayAdapter::currentTransaction |
| 69 | + * @covers GatewayAdapter::buildRequestXML |
| 70 | + * @covers GatewayAdapter::getData |
| 71 | + */ |
| 72 | + public function testBuildRequestXmlWithIssuerId31() { |
| 73 | + |
| 74 | + $optionsForTestData = array( |
| 75 | + 'form_name' => 'TwoStepAmount', |
| 76 | + 'payment_method' => 'rtbt', |
| 77 | + 'payment_submethod' => 'rtbt_ideal', |
| 78 | + 'payment_product_id' => 809, |
| 79 | + 'issuer_id' => 31, |
| 80 | + ); |
| 81 | + |
| 82 | + $options = $this->getGatewayAdapterTestDataFromSpain( $optionsForTestData ); |
| 83 | + |
| 84 | + $this->buildRequestXmlForGlobalCollect( $optionsForTestData, $options ); |
| 85 | + } |
| 86 | + |
| 87 | + /** |
| 88 | + * testBuildRequestXmlWithIssuerId91 |
| 89 | + * |
| 90 | + * Friesland Bank: 91 |
| 91 | + * |
| 92 | + * @covers GatewayAdapter::__construct |
| 93 | + * @covers GatewayAdapter::currentTransaction |
| 94 | + * @covers GatewayAdapter::buildRequestXML |
| 95 | + * @covers GatewayAdapter::getData |
| 96 | + */ |
| 97 | + public function testBuildRequestXmlWithIssuerId91() { |
| 98 | + |
| 99 | + $optionsForTestData = array( |
| 100 | + 'form_name' => 'TwoStepAmount', |
| 101 | + 'payment_method' => 'rtbt', |
| 102 | + 'payment_submethod' => 'rtbt_ideal', |
| 103 | + 'payment_product_id' => 809, |
| 104 | + 'issuer_id' => 91, |
| 105 | + ); |
| 106 | + |
| 107 | + $options = $this->getGatewayAdapterTestDataFromSpain( $optionsForTestData ); |
| 108 | + |
| 109 | + $this->buildRequestXmlForGlobalCollect( $optionsForTestData, $options ); |
| 110 | + } |
| 111 | + |
| 112 | + /** |
| 113 | + * testBuildRequestXmlWithIssuerId161 |
| 114 | + * |
| 115 | + * Van Lanschot Bankiers: 161 |
| 116 | + * |
| 117 | + * @covers GatewayAdapter::__construct |
| 118 | + * @covers GatewayAdapter::currentTransaction |
| 119 | + * @covers GatewayAdapter::buildRequestXML |
| 120 | + * @covers GatewayAdapter::getData |
| 121 | + */ |
| 122 | + public function testBuildRequestXmlWithIssuerId161() { |
| 123 | + |
| 124 | + $optionsForTestData = array( |
| 125 | + 'form_name' => 'TwoStepAmount', |
| 126 | + 'payment_method' => 'rtbt', |
| 127 | + 'payment_submethod' => 'rtbt_ideal', |
| 128 | + 'payment_product_id' => 809, |
| 129 | + 'issuer_id' => 161, |
| 130 | + ); |
| 131 | + |
| 132 | + $options = $this->getGatewayAdapterTestDataFromSpain( $optionsForTestData ); |
| 133 | + |
| 134 | + $this->buildRequestXmlForGlobalCollect( $optionsForTestData, $options ); |
| 135 | + } |
| 136 | + |
| 137 | + /** |
| 138 | + * testBuildRequestXmlWithIssuerId511 |
| 139 | + * |
| 140 | + * Triodos Bank: 511 |
| 141 | + * |
| 142 | + * @covers GatewayAdapter::__construct |
| 143 | + * @covers GatewayAdapter::currentTransaction |
| 144 | + * @covers GatewayAdapter::buildRequestXML |
| 145 | + * @covers GatewayAdapter::getData |
| 146 | + */ |
| 147 | + public function testBuildRequestXmlWithIssuerId511() { |
| 148 | + |
| 149 | + $optionsForTestData = array( |
| 150 | + 'form_name' => 'TwoStepAmount', |
| 151 | + 'payment_method' => 'rtbt', |
| 152 | + 'payment_submethod' => 'rtbt_ideal', |
| 153 | + 'payment_product_id' => 809, |
| 154 | + 'issuer_id' => 511, |
| 155 | + ); |
| 156 | + |
| 157 | + $options = $this->getGatewayAdapterTestDataFromSpain( $optionsForTestData ); |
| 158 | + |
| 159 | + $this->buildRequestXmlForGlobalCollect( $optionsForTestData, $options ); |
| 160 | + } |
| 161 | + |
| 162 | + /** |
| 163 | + * testBuildRequestXmlWithIssuerId721 |
| 164 | + * |
| 165 | + * ING: 721 |
| 166 | + * |
| 167 | + * @covers GatewayAdapter::__construct |
| 168 | + * @covers GatewayAdapter::currentTransaction |
| 169 | + * @covers GatewayAdapter::buildRequestXML |
| 170 | + * @covers GatewayAdapter::getData |
| 171 | + */ |
| 172 | + public function testBuildRequestXmlWithIssuerId721() { |
| 173 | + |
| 174 | + $optionsForTestData = array( |
| 175 | + 'form_name' => 'TwoStepAmount', |
| 176 | + 'payment_method' => 'rtbt', |
| 177 | + 'payment_submethod' => 'rtbt_ideal', |
| 178 | + 'payment_product_id' => 809, |
| 179 | + 'issuer_id' => 721, |
| 180 | + ); |
| 181 | + |
| 182 | + $options = $this->getGatewayAdapterTestDataFromSpain( $optionsForTestData ); |
| 183 | + |
| 184 | + $this->buildRequestXmlForGlobalCollect( $optionsForTestData, $options ); |
| 185 | + } |
| 186 | + |
| 187 | + /** |
| 188 | + * testBuildRequestXmlWithIssuerId751 |
| 189 | + * |
| 190 | + * SNS Bank: 751 |
| 191 | + * |
| 192 | + * @covers GatewayAdapter::__construct |
| 193 | + * @covers GatewayAdapter::currentTransaction |
| 194 | + * @covers GatewayAdapter::buildRequestXML |
| 195 | + * @covers GatewayAdapter::getData |
| 196 | + */ |
| 197 | + public function testBuildRequestXmlWithIssuerId751() { |
| 198 | + |
| 199 | + $optionsForTestData = array( |
| 200 | + 'form_name' => 'TwoStepAmount', |
| 201 | + 'payment_method' => 'rtbt', |
| 202 | + 'payment_submethod' => 'rtbt_ideal', |
| 203 | + 'payment_product_id' => 809, |
| 204 | + 'issuer_id' => 751, |
| 205 | + ); |
| 206 | + |
| 207 | + $options = $this->getGatewayAdapterTestDataFromSpain( $optionsForTestData ); |
| 208 | + |
| 209 | + $this->buildRequestXmlForGlobalCollect( $optionsForTestData, $options ); |
| 210 | + } |
| 211 | + |
| 212 | + /** |
| 213 | + * testBuildRequestXmlWithIssuerId761 |
| 214 | + * |
| 215 | + * ASN Bank: 761 |
| 216 | + * |
| 217 | + * @covers GatewayAdapter::__construct |
| 218 | + * @covers GatewayAdapter::currentTransaction |
| 219 | + * @covers GatewayAdapter::buildRequestXML |
| 220 | + * @covers GatewayAdapter::getData |
| 221 | + */ |
| 222 | + public function testBuildRequestXmlWithIssuerId761() { |
| 223 | + |
| 224 | + $optionsForTestData = array( |
| 225 | + 'form_name' => 'TwoStepAmount', |
| 226 | + 'payment_method' => 'rtbt', |
| 227 | + 'payment_submethod' => 'rtbt_ideal', |
| 228 | + 'payment_product_id' => 809, |
| 229 | + 'issuer_id' => 761, |
| 230 | + ); |
| 231 | + |
| 232 | + $options = $this->getGatewayAdapterTestDataFromSpain( $optionsForTestData ); |
| 233 | + |
| 234 | + $this->buildRequestXmlForGlobalCollect( $optionsForTestData, $options ); |
| 235 | + } |
| 236 | + |
| 237 | + /** |
| 238 | + * testBuildRequestXmlWithIssuerId771 |
| 239 | + * |
| 240 | + * RegioBank: 771 |
| 241 | + * |
| 242 | + * @covers GatewayAdapter::__construct |
| 243 | + * @covers GatewayAdapter::currentTransaction |
| 244 | + * @covers GatewayAdapter::buildRequestXML |
| 245 | + * @covers GatewayAdapter::getData |
| 246 | + */ |
| 247 | + public function testBuildRequestXmlWithIssuerId771() { |
| 248 | + |
| 249 | + $optionsForTestData = array( |
| 250 | + 'form_name' => 'TwoStepAmount', |
| 251 | + 'payment_method' => 'rtbt', |
| 252 | + 'payment_submethod' => 'rtbt_ideal', |
| 253 | + 'payment_product_id' => 809, |
| 254 | + 'issuer_id' => 771, |
| 255 | + ); |
| 256 | + |
| 257 | + $options = $this->getGatewayAdapterTestDataFromSpain( $optionsForTestData ); |
| 258 | + |
| 259 | + $this->buildRequestXmlForGlobalCollect( $optionsForTestData, $options ); |
| 260 | + } |
| 261 | +} |
| 262 | + |
Property changes on: trunk/extensions/DonationInterface/tests/Adapter/GlobalCollect/RealTimeBankTransferIdealTestCase.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 263 | + native |
Added: svn:mime-type |
2 | 264 | + text/plain |
Added: svn:keywords |
3 | 265 | + Author Date HeadURL Header Id Revision |