function ViewsUserTestCase::setUp

Overrides ViewsSqlTest::setUp

File

tests/user/views_user.test, line 37

Class

ViewsUserTestCase
Tests basic user module integration into views.

Code

public function setUp(array $modules = array()) {
    parent::setUp($modules);
    $this->users[] = $this->drupalCreateUser();
    $this->users[] = user_load(1);
    $this->nodes[] = $this->drupalCreateNode(array(
        'uid' => $this->users[0]->uid,
    ));
    $this->nodes[] = $this->drupalCreateNode(array(
        'uid' => 1,
    ));
}