class Mock extends TestCase (View source)

The test mock class.

Methods

object
createAutomad(string $template = '')

Create a mock of the Automad object with a single page.

array
createCollection(Shared $Shared, string $template)

Create a collection of test pages.

Details

object createAutomad(string $template = '')

Create a mock of the Automad object with a single page.

A template can be passed optionally to the page.

Parameters

string $template

Return Value

object The Automad Mock

private array createCollection(Shared $Shared, string $template)

Create a collection of test pages.

Parameters

Shared $Shared
string $template

Return Value

array the collection