Property | Type | Description | |
---|---|---|---|
$app | The application instance. | ||
$baseUrl | string | The base URL to use while testing the application. | |
$beforeApplicationDestroyedCallbacks | array | The callbacks that should be run before the application is destroyed. |
Method | Description | |
---|---|---|
actingAs ( Illuminate\Contracts\Auth\Authenticatable $user, string | null $driver = null ) | Set the currently logged in user for the application. | |
artisan ( string $command, array $parameters = [] ) : integer | Call artisan command and return code. | |
be ( Illuminate\Contracts\Auth\Authenticatable $user, string | null $driver = null ) : void | Set the currently logged in user for the application. | |
createApplication ( ) : Symfony\Component\HttpKernel\HttpKernelInterface | Creates the application. | |
expectsEvents ( array | string $events ) | Specify a list of events that should be fired for the given operation. | |
setUp ( ) : void | Setup the test environment. | |
tearDown ( ) : void | Clean up the testing environment before the next test. |
Method | Description | |
---|---|---|
beforeApplicationDestroyed ( callable $callback ) : void | Register a callback to be run before the application is destroyed. | |
expectsJobs ( array | string $jobs ) | Specify a list of jobs that should be dispatched for the given operation. | |
missingFromDatabase ( string $table, array $data, string | null $onConnection = null ) | Assert that a given where condition does not exist in the database. | |
notSeeInDatabase ( string $table, array $data, string | null $onConnection = null ) | Assert that a given where condition does not exist in the database. | |
refreshApplication ( ) : void | Refresh the application instance. | |
seeInDatabase ( string $table, array $data, string | null $onConnection = null ) | Assert that a given where condition exists in the database. | |
setUpTraits ( ) : void | Boot the testing helper traits. | |
withoutEvents ( ) | Mock the event dispatcher so all events are silenced. |
protected beforeApplicationDestroyed ( callable $callback ) : void | ||
$callback | callable | |
return | void |
abstract public createApplication ( ) : Symfony\Component\HttpKernel\HttpKernelInterface | ||
return | Symfony\Component\HttpKernel\HttpKernelInterface |
public expectsEvents ( array | string $events ) | ||
$events | array | string |
protected expectsJobs ( array | string $jobs ) | ||
$jobs | array | string |
protected refreshApplication ( ) : void | ||
return | void |
protected setUpTraits ( ) : void | ||
return | void |
protected withoutEvents ( ) |
protected Application,Laravel\Lumen $app | ||
return |
protected string $baseUrl | ||
return | string |
protected array $beforeApplicationDestroyedCallbacks | ||
return | array |