DefineDatabase
final class DefineDatabase implements Actionable, AfterEach, BeforeEach
Calls a test method for database setup with deferred execution support.
Resets RefreshDatabaseState before and after each test.
Methods
Details
at line 25
__construct(string $method, bool $defer = true)
Construct a new attribute.
at line 34
void
beforeEach(Application $app)
Handle the attribute before each test.
at line 42
void
afterEach(Application $app)
Handle the attribute after each test.
at line 52
mixed
handle(Application $app, Closure $action)
Handle the attribute.