\NewsTest
Tests for the Newsitems.
If I missed any test, feel free to add!
- Author: Simon 'Sphere' Erkelens
Synopsis
class NewsTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'NewsTest.yml';
- // methods
- public void setUp()
- public void testItemPublished()
- public void testItemPages()
- public void testItemURLSegment()
Hierarchy
Extends
- SapphireTest
Members
protected
- $fixture_file
Methods
public
- setUp()
- testItemPages() — Test if pages are linked correctly.
- testItemPublished() — Check if only the items with a date in the past AND Live items are there.
- testItemURLSegment() — Test if URLSegments are correctly set and no collision occurs.