Skip to content

Commit

Permalink
Merge pull request #116 from creative-commoners/pulls/4/gridfield-lim…
Browse files Browse the repository at this point in the history
…ited-items-per-page

NEW Test class for GridField with limited number of items in the list
  • Loading branch information
GuySartorelli authored Aug 22, 2022
2 parents 01fe44d + f098a69 commit 7bf069f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions code/fields/GridFieldTestNavigation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace SilverStripe\FrameworkTest\Fields\Admin;

use SilverStripe\Admin\ModelAdmin;
use SilverStripe\FrameworkTest\Model\Company;

class GridFieldTestNavigation extends ModelAdmin
{
private static string $url_segment = 'gridfield-test-navigation';
private static string $menu_title = 'GridField Test Navigation';
private static string $menu_icon_class = 'font-icon-block-banner';

private static array $managed_models = [
Company::class,
];

private static $page_length = 5;
}

0 comments on commit 7bf069f

Please sign in to comment.