Tests rendering with NULL pager.
public function testRenderNullPager() {
// Create 11 nodes and make sure that everyone is returned.
// We create 11 nodes, because the default pager plugin had 10 items per page.
for ($i = 0; $i < 11; $i++) {
$this
->drupalCreateNode();
}
$view = views_get_view('test_pager_full');
$this
->executeView($view);
$view->use_ajax = TRUE;
// force the value again here
$view->pager = NULL;
$output = $view
->render();
$output = drupal_render($output);
$this
->assertEqual(preg_match('/<ul class="pager">/', $output), 0, t('The pager is not rendered.'));
}