SilverLeague\LogViewer\Tests\Admin\LogViewerAdminTest
- Author: Robbie Averill <robbie@averill.co.nz>
Synopsis
class LogViewerAdminTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'LogViewerAdminTest.yml';
- protected LogViewerAdmin $logViewerAdmin;
- // methods
- public void setUp()
- public void testLogsShouldBeInReverseOrder()
- public void testNoAddButton()
- public void testHasClearAllButton()
- public void testHasPagination()
- public void testEntryAndLevelShouldBeInSummaryFields()
- protected GridFieldConfig getConfig()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
-
$fixture_file
{@inheritDoc} - $logViewerAdmin
—
SilverLeague\LogViewer\Admin\LogViewerAdmin
The test subject
Methods
protected
- getConfig() — Get the test GridField's config class
public
- setUp() — {@inheritDoc}
- testEntryAndLevelShouldBeInSummaryFields() — Test that the entry and level fields are displayed in the GridField, and can be exported
- testHasClearAllButton() — Test that there's a "clear all" button
- testHasPagination() — Test that the GridField has a Paginator component
- testLogsShouldBeInReverseOrder() — Test that the log entries are returned in reverse order of creation date/time
- testNoAddButton() — Test that the GridField "add new" button has been removed