Test\Unit\BraintreeExtensionTest
Class BraintreeExtensionTest
Synopsis
class BraintreeExtensionTest
extends Setup
{
- // members
- private $member;
- // Inherited members from Setup
- public static string $bt_environment;
- public static string $bt_merchantId;
- public static string $bt_publicKey;
- public static string $bt_privateKey;
- public $gateway;
- // methods
- public static void setupBeforeClass()
- public static void tearDownAfterClass()
- public void setUp()
- public void testGatewayConfig()
- public void testCreateClient()
- public void testClientId()
- public void testClientToken()
- public void tearDown()
- // Inherited methods from Setup
- public void __construct()
- public static void setupBraintreeSettings()
- public void setUp()
- public void tearDown()
Hierarchy
Extends
Members
private
- $member
public
- $bt_environment
- $bt_merchantId
- $bt_privateKey
- $bt_publicKey
- $gateway
Methods
public
- setUp() — Initialize new SS member
- setupBeforeClass() — Onetime setup for this test class
- tearDown() — Tear down for each test
- tearDownAfterClass() — Onetime tear down for this test class
- testClientId() — Test if client id is stored in member and retrieved
- testClientToken() — Test client token is created and not null nor empty
- testCreateClient() — Test if creating client for the same member twice should result in different clients (ids)
- testGatewayConfig() — Test if gateway config is correct
Inherited from Test\Setup
public
- setUp() — Initialize a new gateway if not yet created
- setupBraintreeSettings() — Setup Braintree environment settings
- tearDown()