Syntro\SilverstripeKlaro\Tests\ConfigTest
Test the Config generation
- Author: Matthias Leutenegger <hello@syntro.ch>
Synopsis
class ConfigTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = './fixture.yml';
- // methods
- public void testFailWithoutPurposeTitle()
- public void testFailWithoutServiceTitle()
- public void testFailWithoutServicePurpose()
- public void testFailWithEmptyServicePurpose()
- public void testPurposesForTemplate()
- public void testServicesForTemplatePopulatesService()
- public void testTranslationsForTemplate()
- public void testSiteconfigFields()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file
Methods
public
- testFailWithEmptyServicePurpose() — assert that a render fails if a service does not contain any purposes.
- testFailWithoutPurposeTitle() — assert that the rendering fails when a purpose has no title
- testFailWithoutServicePurpose() — assert that a render fails if a service does not contain a valid set of purposes.
- testFailWithoutServiceTitle() — assert that a render fails if a service does not contain a valid title
- testPurposesForTemplate() — testPurposesForTemplate
- testServicesForTemplatePopulatesService() — testServicesForTemplate
- testSiteconfigFields() — testSiteconfigFields
- testTranslationsForTemplate() — testTranslationsForTemplate