PHP Trait Illuminate\Foundation\Testing\Concerns\InteractsWithDatabase

Afficher le fichier Open project: laravel/framework

Méthodes publiques

Méthode Description
seed ( string $class = 'DatabaseSeeder' ) Seed a given database connection.

Méthodes protégées

Méthode Description
dontSeeInDatabase ( string $table, array $data, string $connection = null ) Assert that a given where condition does not exist in the database.
missingFromDatabase ( string $table, array $data, string $connection = null ) Assert that a given where condition does not exist in the database.
notSeeInDatabase ( string $table, array $data, string $connection = null ) Assert that a given where condition does not exist in the database.
seeInDatabase ( string $table, array $data, string $connection = null ) Assert that a given where condition exists in the database.

Method Details

dontSeeInDatabase() protected méthode

Assert that a given where condition does not exist in the database.
protected dontSeeInDatabase ( string $table, array $data, string $connection = null )
$table string
$data array
$connection string

missingFromDatabase() protected méthode

Assert that a given where condition does not exist in the database.
protected missingFromDatabase ( string $table, array $data, string $connection = null )
$table string
$data array
$connection string

notSeeInDatabase() protected méthode

Assert that a given where condition does not exist in the database.
protected notSeeInDatabase ( string $table, array $data, string $connection = null )
$table string
$data array
$connection string

seeInDatabase() protected méthode

Assert that a given where condition exists in the database.
protected seeInDatabase ( string $table, array $data, string $connection = null )
$table string
$data array
$connection string

seed() public méthode

Seed a given database connection.
public seed ( string $class = 'DatabaseSeeder' )
$class string