class VersionedTestState implements TestState (View source)

Decorate sapphire test with versioning

Properties

protected string $readingmode
protected string $defaultMode

Default reading mode

protected bool $securedDraft

If draft site is secured

Methods

public
setUp(SapphireTest $test)

Called on setup

public
tearDown(SapphireTest $test)

Called on tear down

public
setUpOnce(string $class)

Called once on setup

public
tearDownOnce(string $class)

Called once on tear down

protected
resetState()

Reset to default "null" state both prior to, and following tests

Details

setUp(SapphireTest $test)

Called on setup

Parameters

SapphireTest $test

tearDown(SapphireTest $test)

Called on tear down

Parameters

SapphireTest $test

setUpOnce(string $class)

Called once on setup

Parameters

string $class

Class being setup

tearDownOnce(string $class)

Called once on tear down

Parameters

string $class

Class being torn down

protected resetState()

Reset to default "null" state both prior to, and following tests