You are here

public function PagerDeprecationTest::testDefaultInitialize in Drupal 8

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