Skip to content

Commit

Permalink
Use the ApiContext returned from the auto install. (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Apr 6, 2018
1 parent c2c5778 commit 7e5ce59
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/BunqSdkTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,17 @@ class BunqSdkTestBase extends TestCase
*/
public static function setUpBeforeClass()
{
static::createApiContext();
BunqContext::loadApiContext(
ApiContext::restore(self::FILE_PATH_CONTEXT_CONFIG)
static::createApiContext()
);
}

/**
*/
protected static function createApiContext()
protected static function createApiContext(): ApiContext
{
InstallationUtil::automaticInstall(
BunqEnumApiEnvironmentType::SANDBOX(),
self::FILE_PATH_CONTEXT_CONFIG
return InstallationUtil::automaticInstall(
BunqEnumApiEnvironmentType::SANDBOX()
);
}

Expand Down

0 comments on commit 7e5ce59

Please sign in to comment.