TestCase
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.
int|PendingCommand
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.
at line 32
Application
createApplication()
Create the application.
Needs to be implemented by subclasses.
at line 37
TestCase
be(Authenticatable $user, string|null $guard = null)
Set the currently logged in user for the application.
at line 42
TestCase
seed(array|string $class = 'Database\Seeders\DatabaseSeeder')
Seed a given database connection.
at line 47
int|PendingCommand
artisan(string $command, array $parameters = [])
Call artisan command and return code.