From 3019abc7f6f8113b91e93a63cb71c26b3400aceb Mon Sep 17 00:00:00 2001 From: Nathan Glasl Date: Wed, 10 Jun 2020 11:10:32 +1000 Subject: [PATCH] wip --- tests/GridFieldConfigurablePaginatorTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/GridFieldConfigurablePaginatorTest.php b/tests/GridFieldConfigurablePaginatorTest.php index d61aba62..fdc74931 100644 --- a/tests/GridFieldConfigurablePaginatorTest.php +++ b/tests/GridFieldConfigurablePaginatorTest.php @@ -205,9 +205,9 @@ public function testGetPagerActions() ) ); - $gridField = $this->getMockBuilder(GridField::class)->disableOriginalConstructor()->getMock(); $paginator = new GridFieldConfigurablePaginator; - $result = $paginator->getPagerActions($controls, $gridField); + $paginator->setGridField($this->gridField); + $result = $paginator->getPagerActions($controls, $this->gridField); $this->assertCount(2, $result); $this->assertArrayHasKey('next', $result);