public function ViewsPagerTestCase::testPagerWarning in Date 7.2
Same name and namespace in other branches
- 7.3 date_views/tests/date_views_pager.test \ViewsPagerTestCase::testPagerWarning()
Test the view page has no PHP warnings.
File
- date_views/
tests/ date_views_pager.test, line 123 - Views date pager test.
Class
- ViewsPagerTestCase
- Test Date views pager functions.
Code
public function testPagerWarning() {
$this
->drupalCreateNode(array(
'type' => 'blog',
));
// Set pager to skip empty pages.
$edit = array(
'pager_options[skip_empty_pages]' => FALSE,
);
$this
->drupalPost('admin/structure/views/nojs/display/test_date_pager/default/pager_options', $edit, t('Apply'));
// Save the view.
$this
->drupalPost('admin/structure/views/view/test_date_pager/edit', array(), t('Save'));
// Visit view page. This will throw error, if any PHP warnings or errors.
$this
->drupalGet('test_date_pager');
}