Skip to content

Commit

Permalink
root url changed for preprod env
Browse files Browse the repository at this point in the history
...to https://mangopay-api-inte.leetchi.com
+ Reusable removed from Card and CardRegistration
  • Loading branch information
Sergiusz Woźnicki committed Sep 26, 2013
1 parent ed6cf5d commit f387fdf
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
6 changes: 0 additions & 6 deletions MangoPaySDK/entities/card.inc
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,4 @@ class Card extends EntityBase {
* @var string
*/
public $Validity;

/**
* Reusable
* @var bool
*/
public $Reusable;
}
6 changes: 0 additions & 6 deletions MangoPaySDK/entities/cardRegistration.inc
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ class CardRegistration extends EntityBase {
*/
public $Status;

/**
* Reusable
* @var bool
*/
public $Reusable;

/**
* Get array with read-only properties
* @return array
Expand Down
2 changes: 1 addition & 1 deletion MangoPaySDK/types/configuration.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Configuration {
* Base URL to MangoPay API
* @var string
*/
public $BaseUrl = 'https://mangopay-api-inte.leetchi.com';
public $BaseUrl = 'https://api-preprod.mangopay.com';

/**
* Path to folder with temporary files (with permissions to write)
Expand Down
11 changes: 11 additions & 0 deletions tests/cases/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<li><a href='../suites/all.php'>[ALL]</a></li>
<?php

$ignore = array(".", "..", "base.php", "index.php");
if ($handle = opendir('.')) {
while (false !== ($entry = readdir($handle))) {
if (in_array($entry, $ignore)) continue;
echo "<li><a href='$entry'>$entry</a></li>";
}
closedir($handle);
}
1 change: 0 additions & 1 deletion tests/cases/payOuts.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function test_PayOuts_Create_BankWire_FailsCauseNotEnoughMoney() {
$this->fail('Should throw ResponseException');
} catch (\MangoPay\ResponseException $ex) {
$this->assertIdentical($ex->getCode(), 400);
$this->assertTrue(strpos($ex->getMessage(), 'The amount you wish to spend must be smaller than the amount left in your collection') !== false);
} catch (\Exception $ex) {
$this->fail('Should throw ResponseException');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/suites/all.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TestCasesCollector extends \SimpleCollector {
protected function isHidden($filename) {

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

return parent::isHidden($filename);
Expand Down

0 comments on commit f387fdf

Please sign in to comment.