jenkins-bot has submitted this change and it was merged. Change subject: Update currency rates ......................................................................
Update currency rates And use currencies pegged to the dollar in fallback conversion tests. Change-Id: I28eb63d1b983782a9862368e7bebf109490220a9 --- M gateway_common/CurrencyRates.php M modules/validate.currencyMinimums.js M tests/GatewayPageTest.php 3 files changed, 382 insertions(+), 382 deletions(-) Approvals: Awight: Looks good to me, approved jenkins-bot: Verified diff --git a/gateway_common/CurrencyRates.php b/gateway_common/CurrencyRates.php index bd867b7..809db6b 100644 --- a/gateway_common/CurrencyRates.php +++ b/gateway_common/CurrencyRates.php @@ -4,212 +4,211 @@ /** * FIXME: script to generate regularly * Supplies rough (not up-to-date) conversion rates for currencies - * Last updated June 26, 2014 */ - static public $lastUpdated = '2014-06-26'; + static public $lastUpdated = '2015-07-08'; static public function getCurrencyRates() { // If you change these, make sure to also update any JS validation scripts // For now I'm not rounding numbers under 1 because I don't think that's a big issue and could cause issues with the max check. $currencyRates = array( - 'ADF' => 4.8, - 'ADP' => 122.2, - 'AED' => 3.6, - 'AFA' => 58, - 'AFN' => 58, - 'ALL' => 104.8, - 'AMD' => 410, - 'ANG' => 1.8, - 'AOA' => 97.9, - 'AON' => 97.9, - 'ARS' => 8.1, - 'ATS' => 10.1, - 'AUD' => 1, - 'AWG' => 1.7, - 'AZM' => 3926.1, - 'AZN' => 0.78, - 'BAM' => 1.4, + 'ADF' => 5.95, + 'ADP' => 150.87, + 'AED' => 3.67, + 'AFA' => 60.47, + 'AFN' => 60.47, + 'ALL' => 124.74, + 'AMD' => 473.47, + 'ANG' => 1.82, + 'AOA' => 122.35, + 'AON' => 122.35, + 'ARS' => 9.1, + 'ATS' => 12.48, + 'AUD' => 1.35, + 'AWG' => 1.79, + 'AZM' => 3926.19, + 'AZN' => 1.05, + 'BAM' => 1.77, 'BBD' => 2, - 'BDT' => 78.9, - 'BEF' => 29.6, - 'BGL' => 1.4, - 'BGN' => 1.4, + 'BDT' => 76.04, + 'BEF' => 36.58, + 'BGL' => 1.77, + 'BGN' => 1.77, 'BHD' => 0.37, - 'BIF' => 1566.9, + 'BIF' => 1599.65, 'BMD' => 1, - 'BND' => 1.2, - 'BOB' => 7, - 'BRL' => 2.2, - 'BSD' => 1, - 'BTN' => 60, - 'BWP' => 8.9, - 'BYR' => 10242.7, - 'BZD' => 2, - 'CAD' => 1, - 'CDF' => 936.3, - 'CHF' => 0.89, - 'CLP' => 557.4, - 'CNY' => 6.1, - 'COP' => 1880, - 'CRC' => 564.6, + 'BND' => 1.33, + 'BOB' => 6.71, + 'BRL' => 3.2, + 'BSD' => 0.99, + 'BTN' => 63.52, + 'BWP' => 9.89, + 'BYR' => 15378.7, + 'BZD' => 1.96, + 'CAD' => 1.27, + 'CDF' => 912.52, + 'CHF' => 0.95, + 'CLP' => 651.51, + 'CNY' => 6.09, + 'COP' => 2648.2, + 'CRC' => 523.08, 'CUC' => 1, - 'CUP' => 23.1, - 'CVE' => 81.1, - 'CYP' => 0.43, - 'CZK' => 20.1, - 'DEM' => 1.4, - 'DJF' => 186.1, - 'DKK' => 5.4, - 'DOP' => 43.7, - 'DZD' => 79.6, - 'ECS' => 25588.5, - 'EEK' => 11.7, - 'EGP' => 7.1, - 'ESP' => 122.2, - 'ETB' => 19.7, - 'EUR' => 0.73, - 'FIM' => 4.3, - 'FJD' => 1.8, - 'FKP' => 0.58, - 'FRF' => 4.8, - 'GBP' => 0.58, - 'GEL' => 1.7, - 'GHC' => 31867.4, - 'GHS' => 3.1, - 'GIP' => 0.58, - 'GMD' => 40, - 'GNF' => 7147.9, - 'GRD' => 250.3, - 'GTQ' => 7.9, - 'GYD' => 200, - 'HKD' => 7.7, - 'HNL' => 21.1, - 'HRK' => 5.5, - 'HTG' => 45.7, - 'HUF' => 224.9, - 'IDR' => 11947.4, - 'IEP' => 0.57, - 'ILS' => 3.4, - 'INR' => 60, - 'IQD' => 1177.9, - 'IRR' => 25660.7, - 'ISK' => 113.8, - 'ITL' => 1422.8, - 'JMD' => 112.6, + 'CUP' => 23.15, + 'CVE' => 99.81, + 'CYP' => 0.53, + 'CZK' => 24.59, + 'DEM' => 1.77, + 'DJF' => 177.72, + 'DKK' => 6.77, + 'DOP' => 44.46, + 'DZD' => 99.04, + 'ECS' => 25588.54, + 'EEK' => 14.19, + 'EGP' => 7.81, + 'ESP' => 150.87, + 'ETB' => 20.5, + 'EUR' => 0.91, + 'FIM' => 5.39, + 'FJD' => 2.11, + 'FKP' => 0.65, + 'FRF' => 5.95, + 'GBP' => 0.65, + 'GEL' => 2.25, + 'GHC' => 37964.2, + 'GHS' => 3.8, + 'GIP' => 0.65, + 'GMD' => 38.45, + 'GNF' => 7251.79, + 'GRD' => 308.97, + 'GTQ' => 7.43, + 'GYD' => 197.27, + 'HKD' => 7.75, + 'HNL' => 21.27, + 'HRK' => 6.87, + 'HTG' => 52.41, + 'HUF' => 287.8, + 'IDR' => 13333.3, + 'IEP' => 0.71, + 'ILS' => 3.79, + 'INR' => 63.39, + 'IQD' => 1141.95, + 'IRR' => 29360, + 'ISK' => 133.46, + 'ITL' => 1755.66, + 'JMD' => 113.71, 'JOD' => 0.71, - 'JPY' => 101.8, - 'KES' => 88.8, - 'KGS' => 52.4, - 'KHR' => 4096.6, - 'KMF' => 362.4, - 'KPW' => 135, - 'KRW' => 1020.3, - 'KWD' => 0.28, - 'KYD' => 0.84, - 'KZT' => 185.5, - 'LAK' => 8176.6, - 'LBP' => 1528.8, - 'LKR' => 130.4, - 'LRD' => 90, - 'LSL' => 10.6, - 'LTL' => 2.5, - 'LUF' => 29.6, - 'LVL' => 0.51, - 'LYD' => 1.2, - 'MAD' => 8.2, - 'MDL' => 14.1, - 'MGA' => 2461.2, - 'MGF' => 9149.1, - 'MKD' => 45.6, - 'MMK' => 993, - 'MNT' => 1829.1, - 'MOP' => 8.1, - 'MRO' => 294.8, - 'MTL' => 0.31, - 'MUR' => 31.3, - 'MVR' => 15.6, - 'MWK' => 397.6, - 'MXN' => 12.9, - 'MYR' => 3.2, - 'MZM' => 31645.5, - 'MZN' => 31.6, - 'NAD' => 10.6, - 'NGN' => 164.6, - 'NIO' => 26.3, - 'NLG' => 1.6, - 'NOK' => 6, - 'NPR' => 97.4, - 'NZD' => 1.1, + 'JPY' => 121.58, + 'KES' => 98.48, + 'KGS' => 62.13, + 'KHR' => 3995.54, + 'KMF' => 445, + 'KPW' => 135.01, + 'KRW' => 1134.04, + 'KWD' => 0.3, + 'KYD' => 0.82, + 'KZT' => 183.31, + 'LAK' => 7923.05, + 'LBP' => 1480.9, + 'LKR' => 130.3, + 'LRD' => 85, + 'LSL' => 12.5, + 'LTL' => 3.13, + 'LUF' => 36.58, + 'LVL' => 0.64, + 'LYD' => 1.34, + 'MAD' => 9.77, + 'MDL' => 18.71, + 'MGA' => 3252.88, + 'MGF' => 9149.13, + 'MKD' => 55.45, + 'MMK' => 1111.03, + 'MNT' => 1958, + 'MOP' => 7.79, + 'MRO' => 320.47, + 'MTL' => 0.39, + 'MUR' => 34.3, + 'MVR' => 14.97, + 'MWK' => 441.83, + 'MXN' => 15.82, + 'MYR' => 3.8, + 'MZM' => 38000, + 'MZN' => 38, + 'NAD' => 12.5, + 'NGN' => 196.44, + 'NIO' => 26.24, + 'NLG' => 2, + 'NOK' => 8.2, + 'NPR' => 99.74, + 'NZD' => 1.5, 'OMR' => 0.38, 'PAB' => 1, - 'PEN' => 2.8, - 'PGK' => 2.4, - 'PHP' => 43.8, - 'PKR' => 99, - 'PLN' => 3, - 'PTE' => 147.3, - 'PYG' => 4494.3, - 'QAR' => 3.6, - 'ROL' => 32320.6, - 'RON' => 3.2, - 'RSD' => 85.1, - 'RUB' => 34.3, - 'RWF' => 690.1, - 'SAR' => 3.7, - 'SBD' => 7.3, - 'SCR' => 13, - 'SDD' => 572.7, - 'SDG' => 5.7, - 'SDP' => 2272.2, - 'SEK' => 6.6, - 'SGD' => 1.2, - 'SHP' => 0.58, - 'SIT' => 176, - 'SKK' => 22.1, - 'SLL' => 4450.3, - 'SOS' => 970.8, - 'SRD' => 3.3, - 'SRG' => 3300.3, - 'STD' => 18185.1, - 'SVC' => 8.9, - 'SYP' => 149.2, - 'SZL' => 10.6, - 'THB' => 32.4, - 'TJS' => 4.9, - 'TMM' => 14285.7, - 'TMT' => 2.8, - 'TND' => 1.6, - 'TOP' => 1.8, - 'TRL' => 2131287.2, - 'TRY' => 2.1, - 'TTD' => 6.5, - 'TWD' => 30, - 'TZS' => 1717.9, - 'UAH' => 12.1, - 'UGX' => 2608.9, + 'PEN' => 3.12, + 'PGK' => 2.68, + 'PHP' => 45.15, + 'PKR' => 100.4, + 'PLN' => 3.83, + 'PTE' => 181.78, + 'PYG' => 5065.03, + 'QAR' => 3.64, + 'ROL' => 40637.3, + 'RON' => 4.06, + 'RSD' => 108.68, + 'RUB' => 57.16, + 'RWF' => 721.7, + 'SAR' => 3.75, + 'SBD' => 7.83, + 'SCR' => 12.33, + 'SDD' => 592.4, + 'SDG' => 5.92, + 'SDP' => 2272.21, + 'SEK' => 8.5, + 'SGD' => 1.35, + 'SHP' => 0.62, + 'SIT' => 217.29, + 'SKK' => 27.32, + 'SLL' => 4158, + 'SOS' => 673, + 'SRD' => 3.24, + 'SRG' => 3240, + 'STD' => 22115.7, + 'SVC' => 8.54, + 'SYP' => 217.65, + 'SZL' => 12.5, + 'THB' => 33.94, + 'TJS' => 6.26, + 'TMM' => 14285.71, + 'TMT' => 2.85, + 'TND' => 1.97, + 'TOP' => 2.16, + 'TRL' => 2687990, + 'TRY' => 2.69, + 'TTD' => 6.25, + 'TWD' => 31.04, + 'TZS' => 2185.91, + 'UAH' => 21.25, + 'UGX' => 3454.24, 'USD' => 1, - 'UYU' => 23.4, - 'UZS' => 2367.9, - 'VEB' => 6301.1, - 'VEF' => 6.3, - 'VND' => 21431.6, - 'VUV' => 94.6, - 'WST' => 2.3, - 'XAF' => 481.9, - 'XAG' => 0.04, + 'UYU' => 26.49, + 'UZS' => 2541, + 'VEB' => 6290.36, + 'VEF' => 6.29, + 'VND' => 21482.8, + 'VUV' => 104.5, + 'WST' => 2.36, + 'XAF' => 595.84, + 'XAG' => 0.07, 'XAU' => 0, - 'XCD' => 2.7, - 'XEU' => 0.73, - 'XOF' => 481.9, + 'XCD' => 2.69, + 'XEU' => 0.91, + 'XOF' => 595.83, 'XPD' => 0, - 'XPF' => 88, + 'XPF' => 108.27, 'XPT' => 0, - 'YER' => 215.2, - 'YUN' => 85.1, - 'ZAR' => 10.6, - 'ZMK' => 5327.6, - 'ZWD' => 376.3, + 'YER' => 214.8, + 'YUN' => 108.68, + 'ZAR' => 12.5, + 'ZMK' => 5327.65, + 'ZWD' => 376.36, ); return $currencyRates; diff --git a/modules/validate.currencyMinimums.js b/modules/validate.currencyMinimums.js index e36a78e..c049ded 100644 --- a/modules/validate.currencyMinimums.js +++ b/modules/validate.currencyMinimums.js @@ -1,204 +1,205 @@ // If you change these, also change in CurrencyRates.php. +// TODO: this should be generated by a php ResourceLoader module /******************************************************** ****** DO NOT USE STRINGS FOR THE FOLLOWING VALUES ***** *******************************************************/ window.wgCurrencyMinimums = { - ADF: 4.8, - ADP: 122.2, - AED: 3.6, - AFA: 58, - AFN: 58, - ALL: 104.8, - AMD: 410, - ANG: 1.8, - AOA: 97.9, - AON: 97.9, - ARS: 8.1, - ATS: 10.1, - AUD: 1, - AWG: 1.7, - AZM: 3926.1, - AZN: 0.78, - BAM: 1.4, + ADF: 5.95, + ADP: 150.87, + AED: 3.67, + AFA: 60.47, + AFN: 60.47, + ALL: 124.74, + AMD: 473.47, + ANG: 1.82, + AOA: 122.35, + AON: 122.35, + ARS: 9.1, + ATS: 12.48, + AUD: 1.35, + AWG: 1.79, + AZM: 3926.19, + AZN: 1.05, + BAM: 1.77, BBD: 2, - BDT: 78.9, - BEF: 29.6, - BGL: 1.4, - BGN: 1.4, + BDT: 76.04, + BEF: 36.58, + BGL: 1.77, + BGN: 1.77, BHD: 0.37, - BIF: 1566.9, + BIF: 1599.65, BMD: 1, - BND: 1.2, - BOB: 7, - BRL: 2.2, - BSD: 1, - BTN: 60, - BWP: 8.9, - BYR: 10242.7, - BZD: 2, - CAD: 1, - CDF: 936.3, - CHF: 0.89, - CLP: 557.4, - CNY: 6.1, - COP: 1880, - CRC: 564.6, + BND: 1.33, + BOB: 6.71, + BRL: 3.2, + BSD: 0.99, + BTN: 63.52, + BWP: 9.89, + BYR: 15378.7, + BZD: 1.96, + CAD: 1.27, + CDF: 912.52, + CHF: 0.95, + CLP: 651.51, + CNY: 6.09, + COP: 2648.2, + CRC: 523.08, CUC: 1, - CUP: 23.1, - CVE: 81.1, - CYP: 0.43, - CZK: 20.1, - DEM: 1.4, - DJF: 186.1, - DKK: 5.4, - DOP: 43.7, - DZD: 79.6, - ECS: 25588.5, - EEK: 11.7, - EGP: 7.1, - ESP: 122.2, - ETB: 19.7, - EUR: 0.73, - FIM: 4.3, - FJD: 1.8, - FKP: 0.58, - FRF: 4.8, - GBP: 0.58, - GEL: 1.7, - GHC: 31867.4, - GHS: 3.1, - GIP: 0.58, - GMD: 40, - GNF: 7147.9, - GRD: 250.3, - GTQ: 7.9, - GYD: 200, - HKD: 7.7, - HNL: 21.1, - HRK: 5.5, - HTG: 45.7, - HUF: 224.9, - IDR: 11947.4, - IEP: 0.57, - ILS: 3.4, - INR: 60, - IQD: 1177.9, - IRR: 25660.7, - ISK: 113.8, - ITL: 1422.8, - JMD: 112.6, + CUP: 23.15, + CVE: 99.81, + CYP: 0.53, + CZK: 24.59, + DEM: 1.77, + DJF: 177.72, + DKK: 6.77, + DOP: 44.46, + DZD: 99.04, + ECS: 25588.54, + EEK: 14.19, + EGP: 7.81, + ESP: 150.87, + ETB: 20.5, + EUR: 0.91, + FIM: 5.39, + FJD: 2.11, + FKP: 0.65, + FRF: 5.95, + GBP: 0.65, + GEL: 2.25, + GHC: 37964.2, + GHS: 3.8, + GIP: 0.65, + GMD: 38.45, + GNF: 7251.79, + GRD: 308.97, + GTQ: 7.43, + GYD: 197.27, + HKD: 7.75, + HNL: 21.27, + HRK: 6.87, + HTG: 52.41, + HUF: 287.8, + IDR: 13333.3, + IEP: 0.71, + ILS: 3.79, + INR: 63.39, + IQD: 1141.95, + IRR: 29360, + ISK: 133.46, + ITL: 1755.66, + JMD: 113.71, JOD: 0.71, - JPY: 101.8, - KES: 88.8, - KGS: 52.4, - KHR: 4096.6, - KMF: 362.4, - KPW: 135, - KRW: 1020.3, - KWD: 0.28, - KYD: 0.84, - KZT: 185.5, - LAK: 8176.6, - LBP: 1528.8, - LKR: 130.4, - LRD: 90, - LSL: 10.6, - LTL: 2.5, - LUF: 29.6, - LVL: 0.51, - LYD: 1.2, - MAD: 8.2, - MDL: 14.1, - MGA: 2461.2, - MGF: 9149.1, - MKD: 45.6, - MMK: 993, - MNT: 1829.1, - MOP: 8.1, - MRO: 294.8, - MTL: 0.31, - MUR: 31.3, - MVR: 15.6, - MWK: 397.6, - MXN: 12.9, - MYR: 3.2, - MZM: 31645.5, - MZN: 31.6, - NAD: 10.6, - NGN: 164.6, - NIO: 26.3, - NLG: 1.6, - NOK: 6, - NPR: 97.4, - NZD: 1.1, + JPY: 121.58, + KES: 98.48, + KGS: 62.13, + KHR: 3995.54, + KMF: 445, + KPW: 135.01, + KRW: 1134.04, + KWD: 0.3, + KYD: 0.82, + KZT: 183.31, + LAK: 7923.05, + LBP: 1480.9, + LKR: 130.3, + LRD: 85, + LSL: 12.5, + LTL: 3.13, + LUF: 36.58, + LVL: 0.64, + LYD: 1.34, + MAD: 9.77, + MDL: 18.71, + MGA: 3252.88, + MGF: 9149.13, + MKD: 55.45, + MMK: 1111.03, + MNT: 1958, + MOP: 7.79, + MRO: 320.47, + MTL: 0.39, + MUR: 34.3, + MVR: 14.97, + MWK: 441.83, + MXN: 15.82, + MYR: 3.8, + MZM: 38000, + MZN: 38, + NAD: 12.5, + NGN: 196.44, + NIO: 26.24, + NLG: 2, + NOK: 8.2, + NPR: 99.74, + NZD: 1.5, OMR: 0.38, PAB: 1, - PEN: 2.8, - PGK: 2.4, - PHP: 43.8, - PKR: 99, - PLN: 3, - PTE: 147.3, - PYG: 4494.3, - QAR: 3.6, - ROL: 32320.6, - RON: 3.2, - RSD: 85.1, - RUB: 34.3, - RWF: 690.1, - SAR: 3.7, - SBD: 7.3, - SCR: 13, - SDD: 572.7, - SDG: 5.7, - SDP: 2272.2, - SEK: 6.6, - SGD: 1.2, - SHP: 0.58, - SIT: 176, - SKK: 22.1, - SLL: 4450.3, - SOS: 970.8, - SRD: 3.3, - SRG: 3300.3, - STD: 18185.1, - SVC: 8.9, - SYP: 149.2, - SZL: 10.6, - THB: 32.4, - TJS: 4.9, - TMM: 14285.7, - TMT: 2.8, - TND: 1.6, - TOP: 1.8, - TRL: 2131287.2, - TRY: 2.1, - TTD: 6.5, - TWD: 30, - TZS: 1717.9, - UAH: 12.1, - UGX: 2608.9, + PEN: 3.12, + PGK: 2.68, + PHP: 45.15, + PKR: 100.4, + PLN: 3.83, + PTE: 181.78, + PYG: 5065.03, + QAR: 3.64, + ROL: 40637.3, + RON: 4.06, + RSD: 108.68, + RUB: 57.16, + RWF: 721.7, + SAR: 3.75, + SBD: 7.83, + SCR: 12.33, + SDD: 592.4, + SDG: 5.92, + SDP: 2272.21, + SEK: 8.5, + SGD: 1.35, + SHP: 0.62, + SIT: 217.29, + SKK: 27.32, + SLL: 4158, + SOS: 673, + SRD: 3.24, + SRG: 3240, + STD: 22115.7, + SVC: 8.54, + SYP: 217.65, + SZL: 12.5, + THB: 33.94, + TJS: 6.26, + TMM: 14285.71, + TMT: 2.85, + TND: 1.97, + TOP: 2.16, + TRL: 2687990, + TRY: 2.69, + TTD: 6.25, + TWD: 31.04, + TZS: 2185.91, + UAH: 21.25, + UGX: 3454.24, USD: 1, - UYU: 23.4, - UZS: 2367.9, - VEB: 6301.1, - VEF: 6.3, - VND: 21431.6, - VUV: 94.6, - WST: 2.3, - XAF: 481.9, - XAG: 0.04, + UYU: 26.49, + UZS: 2541, + VEB: 6290.36, + VEF: 6.29, + VND: 21482.8, + VUV: 104.5, + WST: 2.36, + XAF: 595.84, + XAG: 0.07, XAU: 0, - XCD: 2.7, - XEU: 0.73, - XOF: 481.9, + XCD: 2.69, + XEU: 0.91, + XOF: 595.83, XPD: 0, - XPF: 88, + XPF: 108.27, XPT: 0, - YER: 215.2, - YUN: 85.1, - ZAR: 10.6, - ZMK: 5327.6, - ZWD: 376.3 + YER: 214.8, + YUN: 108.68, + ZAR: 12.5, + ZMK: 5327.65, + ZWD: 376.36 }; diff --git a/tests/GatewayPageTest.php b/tests/GatewayPageTest.php index 6050855..fcc2597 100644 --- a/tests/GatewayPageTest.php +++ b/tests/GatewayPageTest.php @@ -30,8 +30,8 @@ $this->page = new TestingGatewayPage(); $this->adapter = new TestingGenericAdapter(); $this->adapter->addRequestData( array( - 'amount' => '120', - 'currency_code' => 'SGD' ) ); + 'amount' => '200', + 'currency_code' => 'BBD' ) ); $this->adapter->errorsForRevalidate[0] = array( 'currency_code' => 'blah' ); $this->adapter->errorsForRevalidate[1] = array(); $this->page->adapter = $this->adapter; @@ -54,16 +54,16 @@ } public function testFallbackIntermediateConversion() { - TestingGenericAdapter::$fakeGlobals['FallbackCurrency'] = 'NZD'; + TestingGenericAdapter::$fakeGlobals['FallbackCurrency'] = 'OMR'; TestingGenericAdapter::$fakeGlobals['NotifyOnConvert'] = true; $this->page->validateForm(); $manualErrors = $this->adapter->getManualErrors(); - $msg = $this->page->msg( 'donate_interface-fallback-currency-notice', 'NZD' )->text(); + $msg = $this->page->msg( 'donate_interface-fallback-currency-notice', 'OMR' )->text(); $this->assertEquals( $msg, $manualErrors['general'] ); - $this->assertEquals( 110, $this->adapter->getData_Unstaged_Escaped( 'amount' ) ); - $this->assertEquals( 'NZD', $this->adapter->getData_Unstaged_Escaped( 'currency_code' ) ); + $this->assertEquals( 38, $this->adapter->getData_Unstaged_Escaped( 'amount' ) ); + $this->assertEquals( 'OMR', $this->adapter->getData_Unstaged_Escaped( 'currency_code' ) ); } public function testFallbackWithoutNotification() { @@ -99,7 +99,7 @@ $manualErrors = $this->adapter->getManualErrors(); $this->assertEquals( null, $manualErrors['general'] ); - $this->assertEquals( 120, $this->adapter->getData_Unstaged_Escaped( 'amount' ) ); - $this->assertEquals( 'SGD', $this->adapter->getData_Unstaged_Escaped( 'currency_code' ) ); + $this->assertEquals( 200, $this->adapter->getData_Unstaged_Escaped( 'amount' ) ); + $this->assertEquals( 'BBD', $this->adapter->getData_Unstaged_Escaped( 'currency_code' ) ); } } -- To view, visit https://gerrit.wikimedia.org/r/223827 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I28eb63d1b983782a9862368e7bebf109490220a9 Gerrit-PatchSet: 4 Gerrit-Project: mediawiki/extensions/DonationInterface Gerrit-Branch: master Gerrit-Owner: Ejegg <eeggles...@wikimedia.org> Gerrit-Reviewer: AndyRussG <andrew.green...@gmail.com> Gerrit-Reviewer: Awight <awi...@wikimedia.org> Gerrit-Reviewer: Ssmith <ssm...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits