function viewsHandlerArgumentCommentUserUidTest::setUp

Overrides ViewsSqlTest::setUp

File

tests/comment/views_handler_argument_comment_user_uid.test, line 47

Class

viewsHandlerArgumentCommentUserUidTest
Tests the argument_comment_user_uid handler.

Code

public function setUp(array $modules = array()) {
  parent::setUp($modules);
  // Add two users, create a node with the user1 as author and another node
  // with user2 as author. For the second node add a comment from user1.
  $this->account = $this->drupalCreateUser();
  $this->account2 = $this->drupalCreateUser();
  $this->drupalLogin($this->account);
  $this->node_user_posted = $this->drupalCreateNode();
  $this->node_user_commented = $this->drupalCreateNode(array(
    'uid' => $this->account2->uid,
  ));
  $this->postComment($this->node_user_commented);
}