You are here

public function PagerFunctionalWebTestCase::testThemePagerQuantityNotSet in Drupal 7

Tests theme_pager() when an empty quantity is passed.

File

modules/simpletest/tests/pager.test, line 61
Tests for pager functionality.

Class

PagerFunctionalWebTestCase
Tests pager functionality.

Code

public function testThemePagerQuantityNotSet() {
  $variables = array(
    'element' => 0,
    'parameters' => array(),
    'quantity' => '',
    'tags' => '',
  );
  pager_default_initialize(100, 10);
  $rendered_output = theme_pager($variables);
  $this
    ->assertNotIdentical(stripos($rendered_output, 'next'), FALSE);
  $this
    ->assertNotIdentical(stripos($rendered_output, 'last'), FALSE);
}