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);