function PagerDeprecationTest::testQueryAddPage

@expectedDeprecation pager_query_add_page is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Pager\PagerManagerInterface->getUpdatedParameters() instead. See https://www.drupal.org/node/2779457

File

core/modules/system/tests/src/Kernel/Pager/PagerDeprecationTest.php, line 39

Class

PagerDeprecationTest
Ensure that deprecated pager functions trigger deprecation errors.

Namespace

Drupal\Tests\system\Kernel\Pager

Code

public function testQueryAddPage() {
    $this->assertArrayHasKey('page', pager_query_add_page([], 1, 1));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.