function PreprocessPagerTest::testPaginationHeadingLevelNotSet
Tests when no #pagination_heading_level is passed.
@legacy-covers ::preprocessPager
File
-
core/
modules/ system/ tests/ src/ Unit/ Pager/ PreprocessPagerTest.php, line 139
Class
- PreprocessPagerTest
- Tests pager preprocessing.
Namespace
Drupal\Tests\system\Unit\PagerCode
public function testPaginationHeadingLevelNotSet() : void {
$variables = [
'pager' => [
'#element' => '',
'#parameters' => [],
'#quantity' => '',
'#route_name' => '',
'#tags' => '',
],
];
$this->pagerPreprocess
->preprocessPager($variables);
$this->assertEquals('h4', $variables['pagination_heading_level']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.