final class WithMigration implements Invokable

Load named Testbench migration sets for the test.

The cache, queue, and session aliases resolve to the default Hypervel set. Use TestCase::loadMigrationsFrom() for package or arbitrary migration paths.

Properties

array<int, string> $types

The target types.

Methods

__construct(string ...$types)

Construct a new attribute.

mixed
__invoke(Application $app)

Handle the attribute.

Details

at line 38
__construct(string ...$types)

Construct a new attribute.

Parameters

string ...$types

Named Testbench migration sets to load

at line 50
mixed __invoke(Application $app)

Handle the attribute.

Parameters

Application $app

Return Value

mixed