Skip to content

Commit f387fdf

Browse files
author
Sergiusz Woźnicki
committed
root url changed for preprod env
...to https://mangopay-api-inte.leetchi.com + Reusable removed from Card and CardRegistration
1 parent ed6cf5d commit f387fdf

File tree

6 files changed

+13
-15
lines changed

6 files changed

+13
-15
lines changed

MangoPaySDK/entities/card.inc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,4 @@ class Card extends EntityBase {
5353
* @var string
5454
*/
5555
public $Validity;
56-
57-
/**
58-
* Reusable
59-
* @var bool
60-
*/
61-
public $Reusable;
6256
}

MangoPaySDK/entities/cardRegistration.inc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ class CardRegistration extends EntityBase {
6060
*/
6161
public $Status;
6262

63-
/**
64-
* Reusable
65-
* @var bool
66-
*/
67-
public $Reusable;
68-
6963
/**
7064
* Get array with read-only properties
7165
* @return array

MangoPaySDK/types/configuration.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Configuration {
2222
* Base URL to MangoPay API
2323
* @var string
2424
*/
25-
public $BaseUrl = 'https://mangopay-api-inte.leetchi.com';
25+
public $BaseUrl = 'https://api-preprod.mangopay.com';
2626

2727
/**
2828
* Path to folder with temporary files (with permissions to write)

tests/cases/index.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<li><a href='../suites/all.php'>[ALL]</a></li>
2+
<?php
3+
4+
$ignore = array(".", "..", "base.php", "index.php");
5+
if ($handle = opendir('.')) {
6+
while (false !== ($entry = readdir($handle))) {
7+
if (in_array($entry, $ignore)) continue;
8+
echo "<li><a href='$entry'>$entry</a></li>";
9+
}
10+
closedir($handle);
11+
}

tests/cases/payOuts.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function test_PayOuts_Create_BankWire_FailsCauseNotEnoughMoney() {
1818
$this->fail('Should throw ResponseException');
1919
} catch (\MangoPay\ResponseException $ex) {
2020
$this->assertIdentical($ex->getCode(), 400);
21-
$this->assertTrue(strpos($ex->getMessage(), 'The amount you wish to spend must be smaller than the amount left in your collection') !== false);
2221
} catch (\Exception $ex) {
2322
$this->fail('Should throw ResponseException');
2423
}

tests/suites/all.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TestCasesCollector extends \SimpleCollector {
2020
protected function isHidden($filename) {
2121

2222
// ignore base.php: with abstract test case class (throws Bad TestSuite [No runnable test cases] otherwise)
23-
if ($filename == "base.php")
23+
if ($filename == "base.php" || $filename == "index.php")
2424
return true;
2525

2626
return parent::isHidden($filename);

0 commit comments

Comments
 (0)