File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace Ublaboo \DataGrid \Tests \Cases ;
6
+
7
+ require __DIR__ . '/../bootstrap.php ' ;
8
+
9
+ use Nette \Application \AbortException ;
10
+ use Tester \Assert ;
11
+ use Tester \TestCase ;
12
+ use Ublaboo \DataGrid \DataGrid ;
13
+ use Ublaboo \DataGrid \Tests \Files \TestingDataGridFactoryRouter ;
14
+
15
+ final class FilterTest extends TestCase
16
+ {
17
+
18
+ public function testFilterSubmit (): void
19
+ {
20
+ $ factory = new TestingDataGridFactoryRouter ();
21
+ /** @var DataGrid $grid */
22
+ $ grid = $ factory ->createTestingDataGrid ()->getComponent ('grid ' );
23
+ $ filterForm = $ grid ->createComponentFilter ();
24
+
25
+ Assert::exception (function () use ($ grid , $ filterForm ): void {
26
+ $ grid ->filterSucceeded ($ filterForm );
27
+ }, AbortException::class);
28
+ }
29
+
30
+ }
31
+
32
+ (new FilterTest )->run ();
You can’t perform that action at this time.
0 commit comments