Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Prepare version 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mtymek committed Jun 15, 2016
1 parent fdb03d2 commit 837ef14
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
3.5.0 (2016-06-15)
==================
* allow enabling sandbox mode using `Cleeng_Api` constructor

3.4.2 (2016-06-12)
==================
* extend EventOffer Api
Expand Down
7 changes: 7 additions & 0 deletions tests/Cleeng/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ public function setUp()
$this->api = new Cleeng_Api();
}

public function testSandboxCanBeEnabledWithConstructor()
{
$api = new Cleeng_Api(['enableSandbox' => true]);
$this->assertEquals(Cleeng_Api::SANDBOX_ENDPOINT, $api->getEndpoint());
$this->assertEquals(Cleeng_Api::SANDBOX_JSAPI_URL, $api->getJsApiUrl());
}

public function testCustomerTokenIsMutable()
{
$this->api->setCustomerToken('XXXXXXXXXXXXXXXXXXXX');
Expand Down

0 comments on commit 837ef14

Please sign in to comment.