diff --git a/.travis.yml b/.travis.yml index 403c77af..3941a76b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,8 @@ matrix: env: DB=MYSQL PHPUNIT_TEST=1 PHPCS_TEST=1 RECIPE_VERSION="^4" - php: 7.3 env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1 RECIPE_VERSION="4.x-dev" + - php: 7.4 + env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1 RECIPE_VERSION="4.x-dev" before_script: - phpenv rehash 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);