SchemaOrgTest
extends TestCase
in package
SchemaOrg View Helper Test Class
Tags
Table of Contents
- getHelper() : SchemaOrg
- Get a helper to test.
- getRecordTypesProvider() : void
- Data provider for testGetRecordTypes().
- testDisabled() : void
- Test that the helper outputs nothing if disabled.
- testEnabled() : void
- Test that the helper outputs content if enabled.
- testGetRecordTypes() : void
- Test that we can get a formatted list of record types.
Methods
getHelper()
Get a helper to test.
public
getHelper(bool $enabled) : SchemaOrg
Parameters
- $enabled : bool
-
Should schema.org be enabled in the helper?
Return values
SchemaOrg —getRecordTypesProvider()
Data provider for testGetRecordTypes().
public
static getRecordTypesProvider() : void
Return values
void —testDisabled()
Test that the helper outputs nothing if disabled.
public
testDisabled() : void
Return values
void —testEnabled()
Test that the helper outputs content if enabled.
public
testEnabled() : void
Return values
void —testGetRecordTypes()
Test that we can get a formatted list of record types.
public
testGetRecordTypes(array<string|int, string> $types, string $expected) : void
Parameters
- $types : array<string|int, string>
-
Types to test with
- $expected : string
-
Expected return value