Bristol SU Support Package
Public Member Functions | Protected Member Functions | List of all members
BristolSU\Support\Testing\TestCase Class Reference
Inheritance diagram for BristolSU\Support\Testing\TestCase:
Inheritance graph
[legend]
Collaboration diagram for BristolSU\Support\Testing\TestCase:
Collaboration graph
[legend]

Public Member Functions

 setUp ()
 
 getEnvironmentSetUp ($app)
 
- Public Member Functions inherited from BristolSU\Support\Testing\CreatesSdkEnvironment
 createSdkEnvironment (Application $app)
 

Protected Member Functions

 getPackageProviders ($app)
 

Detailed Description

Test Case

Sets up a Laravel testing environment for any project using the sdk.

Definition at line 20 of file TestCase.php.

Member Function Documentation

◆ getEnvironmentSetUp()

BristolSU\Support\Testing\TestCase::getEnvironmentSetUp (   $app)

Set up the Orchestra Environment

  • Set up the memory database connection
  • Set up the Sdk environment
Parameters
Application$appApplication to set up

Definition at line 43 of file TestCase.php.

References BristolSU\Support\Testing\CreatesSdkEnvironment\createSdkEnvironment().

◆ getPackageProviders()

BristolSU\Support\Testing\TestCase::getPackageProviders (   $app)
protected

Get the service providers the sdk registers and requires.

Parameters
Application$app
Returns
array

Definition at line 63 of file TestCase.php.

◆ setUp()

BristolSU\Support\Testing\TestCase::setUp ( )

Initialise the test case.

Loads migrations and factories for the sdk

Definition at line 28 of file TestCase.php.


The documentation for this class was generated from the following file: