PHP Class TestCaseDB

Inheritance: extends TestCase
Show file Open project: fenos/notifynder Class Usage Examples

Public Methods

Method Description
setUp ( ) Setup the DB before each test.
tearDown ( ) Rollback transactions after each test.

Protected Methods

Method Description
getApplicationTimezone ( Illuminate\Foundation\Application $app ) : string | null Get application timezone.
getEnvironmentSetUp ( Illuminate\Foundation\Application $app ) : void Define environment setup.
getPackageProviders ( Illuminate\Foundation\Application $app ) : array

Private Methods

Method Description
migrate ( $artisan, string $path = '/../../../../src/migrations' ) Migrate the migrations files.

Method Details

getApplicationTimezone() protected method

Get application timezone.
protected getApplicationTimezone ( Illuminate\Foundation\Application $app ) : string | null
$app Illuminate\Foundation\Application
return string | null

getEnvironmentSetUp() protected method

Define environment setup.
protected getEnvironmentSetUp ( Illuminate\Foundation\Application $app ) : void
$app Illuminate\Foundation\Application
return void

getPackageProviders() protected method

protected getPackageProviders ( Illuminate\Foundation\Application $app ) : array
$app Illuminate\Foundation\Application
return array

setUp() public method

Setup the DB before each test.
public setUp ( )

tearDown() public method

Rollback transactions after each test.
public tearDown ( )