Test\Setup
Class Setup
Synopsis
class Setup
extends SapphireTest
{
- // members
- public static string $bt_environment = 'sandbox';
- public static string $bt_merchantId = 't9nsccxkt5w699t6';
- public static string $bt_publicKey = '8cvcgz9t7h2322gv';
- public static string $bt_privateKey = '4ca8d78be3d35adf8c943198d1fa960f';
- public $gateway = NULL;
- // methods
- public void __construct()
- public static void setupBraintreeSettings()
- public void setUp()
- public void tearDown()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
public
- $bt_environment
- $bt_merchantId
- $bt_privateKey
- $bt_publicKey
- $gateway
Methods
public
- __construct() — Setup constructor.
- setUp() — Initialize a new gateway if not yet created
- setupBraintreeSettings() — Setup Braintree environment settings
- tearDown()