r100823 MediaWiki - Code Review archive

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

Diff [purge]

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

Follow-up revisions

RevisionCommit summaryAuthorDate
r102120Fixed Sweden spelling mistake see r100823.jpostlethwaite21:08, 5 November 2011

Past revisions this follows-up on

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

Comments

#Comment by Nikerabbit (talk | contribs)   06:02, 27 October 2011

Shouldn't it be Sweden?

#Comment by Jpostlethwaite (talk | contribs)   06:32, 27 October 2011

That is what I thought to. I will have to ask. I was asked to create a real time bank transfer for:

Nordea (Sweeden)

I may be propagating a spelling mistake :)

#Comment by Jpostlethwaite (talk | contribs)   06:35, 27 October 2011

Okay, this is a spelling mistake.

I also saw Nordea Finland and Nordea Denmark, so they are definitely countries.

This will need to fixed in a several places.

Thanks for catching this.

#Comment by Jpostlethwaite (talk | contribs)   21:11, 5 November 2011

This is fixed in r102120.

Status & tagging log