SilverStripe\RealMe\Tests\RealMeSetupTaskTest
Class RealMeSetupTaskTest Setup to unit test the Setup task to make sure metadata is being generated correctly.
Synopsis
class RealMeSetupTaskTest
extends SapphireTest
{
- // members
- private static array $validEntityIDs = ;
- private static array $authnEnvContexts = ;
- private static array $metadata_assertion_urls = ;
- // methods
- public void testEnvironmentValidation()
- public void testValidateEntityID()
- public void testValidateAuthNContext()
- public void testConfigurationTemplateDir()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
private
- $authnEnvContexts
- $metadata_assertion_urls
- $validEntityIDs
—
array
Valid entity id's tobe used for context.
Methods
public
- testConfigurationTemplateDir() — Ensure that setting the RealMeSetupTask template_config_dir config value can adjust the path that the task looks in for its templates.
- testEnvironmentValidation() — We need to make sure that if an invalid environment, it raises the correct errors for correction.
- testValidateAuthNContext() — We require an authn context for each environment to determine how secure to ask realme to validate.
- testValidateEntityID() — We need to make sure that there is an entity ID and that it's in the correct format for realme consumption - It's present in the config - it's not localhost - it's not http (must be https) - service name and privacy realm < 10 char.