r100824 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100823‎ | r100824 | r100825 >
Date:16:23, 26 October 2011
Author:jpostlethwaite
Status:deferred
Tags:fundraising 
Comment:
Setup unit test for Real Time Bank Transfer: Sofortuberweisung
Modified paths:
  • /trunk/extensions/DonationInterface/tests/Adapter/GlobalCollect/RealTimeBankTransferSofortuberweisungTestCase.php (added) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/tests/Adapter/GlobalCollect/RealTimeBankTransferSofortuberweisungTestCase.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_RealTimeBankTransferSofortuberweisungTestCase 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_sofortuberweisung',
 51+ 'payment_product_id' => 836,
 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/RealTimeBankTransferSofortuberweisungTestCase.php
___________________________________________________________________
Added: svn:eol-style
160 + native
Added: svn:mime-type
261 + text/plain
Added: svn:keywords
362 + Author Date HeadURL Header Id Revision

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100819Setup unit test for Bank Transfer.jpostlethwaite16:15, 26 October 2011

Status & tagging log