1 | <?php |
||
16 | class LogViewerAdminTest extends FunctionalTest |
||
17 | { |
||
18 | /** |
||
19 | * {@inheritDoc} |
||
20 | */ |
||
21 | protected static $fixture_file = 'LogViewerAdminTest.yml'; |
||
22 | |||
23 | /** |
||
24 | * The test subject |
||
25 | * |
||
26 | * @var LogViewerAdmin |
||
27 | */ |
||
28 | protected $logViewerAdmin; |
||
29 | |||
30 | /** |
||
31 | * {@inheritDoc} |
||
32 | */ |
||
33 | public function setUp() |
||
40 | |||
41 | /** |
||
42 | * Test that the log entries are returned in reverse order of creation date/time |
||
43 | */ |
||
44 | public function testLogsShouldBeInReverseOrder() |
||
50 | |||
51 | /** |
||
52 | * Test that the GridField "add new" button has been removed |
||
53 | */ |
||
54 | public function testNoAddButton() |
||
58 | |||
59 | /** |
||
60 | * Test that there's a "clear all" button |
||
61 | */ |
||
62 | public function testHasClearAllButton() |
||
69 | |||
70 | /** |
||
71 | * Test that the GridField has a Paginator component |
||
72 | */ |
||
73 | public function testHasPagination() |
||
80 | |||
81 | /** |
||
82 | * Test that the entry and level fields are displayed in the GridField, and can be exported |
||
83 | */ |
||
84 | public function testEntryAndLevelShouldBeInSummaryFields() |
||
90 | |||
91 | /** |
||
92 | * Get the test GridField's config class |
||
93 | * |
||
94 | * @return \SilverStripe\Forms\GridField\GridFieldConfig |
||
95 | */ |
||
96 | protected function getConfig() |
||
104 | } |
||
105 |