ilateral\SilverStripe\SystemMessages\SystemMessageTest
Synopsis
class SystemMessageTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'SystemMessages.yml';
- // methods
- public void testClosedByUser()
- public void testClosedByCookie()
- public void testClosedBySession()
- public void testExpired()
- public void testNotStarted()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file
Methods
public
- testClosedByCookie() — Test to see if message is closed via cookie is flagged as "closed" or "open"
- testClosedBySession() — Test to see if message is closed via cookie is flagged as "closed" or "open"
- testClosedByUser() — Test to see if a message closed by a user is flagged as "closed" or "open"
- testExpired() — A message that is past shouldnt be visible
- testNotStarted() — A message that hasn't started yet should not be visible