PHP Trait Illuminate\Foundation\Testing\Concerns\InteractsWithDatabase

Show file Open project: laravel/framework

Public Methods

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

Protected Methods

Method 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 method

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 method

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 method

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 method

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 method

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