PHP Class TestCaseDB

Inheritance: extends TestCase
Afficher le fichier Open project: fenos/notifynder Class Usage Examples

Méthodes publiques

Méthode Description
setUp ( ) Setup the DB before each test.
tearDown ( ) Rollback transactions after each test.

Méthodes protégées

Méthode 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

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

Method Details

getApplicationTimezone() protected méthode

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

getEnvironmentSetUp() protected méthode

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

getPackageProviders() protected méthode

protected getPackageProviders ( Illuminate\Foundation\Application $app ) : array
$app Illuminate\Foundation\Application
Résultat array

setUp() public méthode

Setup the DB before each test.
public setUp ( )

tearDown() public méthode

Rollback transactions after each test.
public tearDown ( )