\DynamicTemplateTest
Synopsis
class DynamicTemplateTest
extends SapphireTest
{
- // members
- public static string $fixture_file = 'dynamictemplate/tests/DynamicTemplate.yml';
- // methods
- public void setUpOnce()
- public void setUp()
- public void setUpTemplate()
- public void dump_files()
- public void tearDownOnce()
- public void recurse_copy()
- public void delete_directory()
- public void testWithNoManifest()
- public void testManifestLoad()
- public void testPageRender()
- public void testManifestCreation()
- public void testManifestStorage()
- public void testManifestHelpers()
Hierarchy
Extends
- SapphireTest
Members
public
- $fixture_file
Methods
public
- delete_directory()
- dump_files()
- recurse_copy()
- setUp()
- setUpOnce() — Before running the tests, we need to copy the test templates into assets.
- setUpTemplate()
- tearDownOnce() — Remove the temp copies of the templates we created.
- testManifestCreation()
- testManifestHelpers()
- testManifestLoad() — Test loading the simple dynamic template with manifest.
- testManifestStorage()
- testPageRender() — Test that a page with a dynamic template renders the right bits
- testWithNoManifest() — Test a dynamic template that has no manifest. This is a test that the default manifest constructed in this case is constructed correctly. The dynamic template is set up with a template, a css file and a javascript file.