function PagerFunctionalWebTestCase::setUp

Overrides DrupalWebTestCase::setUp

File

modules/simpletest/tests/pager.test, line 23

Class

PagerFunctionalWebTestCase
Tests pager functionality.

Code

function setUp() {
    parent::setUp(array(
        'dblog',
    ));
    // Insert 300 log messages.
    for ($i = 0; $i < 300; $i++) {
        watchdog('pager_test', $this->randomString(), NULL, WATCHDOG_DEBUG);
    }
    $this->admin_user = $this->drupalCreateUser(array(
        'access site reports',
    ));
    $this->drupalLogin($this->admin_user);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.