function PagerDeprecationTest::testDefaultInitialize

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

File

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

Class

PagerDeprecationTest
Ensure that deprecated pager functions trigger deprecation errors.

Namespace

Drupal\Tests\system\Kernel\Pager

Code

public function testDefaultInitialize() {
    $this->assertInternalType('int', pager_default_initialize(1, 1));
}

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