interface TestCase

Methods

call(string $method, string $uri, array $parameters = [], array $cookies = [], array $files = [], array $server = [], string|null $content = null)

Call the given URI and return the Response.

createApplication()

Create the application.

be(Authenticatable $user, string|null $guard = null)

Set the currently logged in user for the application.

seed(array|string $class = 'Database\Seeders\DatabaseSeeder')

Seed a given database connection.

artisan(string $command, array $parameters = [])

Call artisan command and return code.

Details

at line 17
TestResponse call(string $method, string $uri, array $parameters = [], array $cookies = [], array $files = [], array $server = [], string|null $content = null)

Call the given URI and return the Response.

Parameters

string $method
string $uri
array $parameters
array $cookies
array $files
array $server
string|null $content

Return Value

TestResponse

at line 32
Application createApplication()

Create the application.

Needs to be implemented by subclasses.

Return Value

Application

at line 37
TestCase be(Authenticatable $user, string|null $guard = null)

Set the currently logged in user for the application.

Parameters

Authenticatable $user
string|null $guard

Return Value

TestCase

at line 42
TestCase seed(array|string $class = 'Database\Seeders\DatabaseSeeder')

Seed a given database connection.

Parameters

array|string $class

Return Value

TestCase

at line 47
int|PendingCommand artisan(string $command, array $parameters = [])

Call artisan command and return code.

Parameters

string $command
array $parameters

Return Value

int|PendingCommand