function ViewsPreprocessTest::testPaginationHeadingLevelNotSet

Tests template_preprocess_views_mini_pager() when no pagination_heading_level is passed.

@legacy-covers ::template_preprocess_views_mini_pager

File

core/modules/views/tests/src/Kernel/ViewsPreprocessTest.php, line 88

Class

ViewsPreprocessTest
Tests the preprocessing functionality in views theme hooks.

Namespace

Drupal\Tests\views\Kernel

Code

public function testPaginationHeadingLevelNotSet() : void {
  $variables = [
    'tags' => [],
    'quantity' => 9,
    'element' => 0,
    'parameters' => [],
  ];
  \Drupal::service(ViewsThemeHooks::class)->preprocessViewsMiniPager($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.