1 comment_views_handler_filter_user_uid.test CommentViewsHandlerFilterUserUidTest::view_comment_user_uid()

Override the view from the argument test case to remove the argument and add filter with the uid as the value.

Overrides CommentViewsHandlerArgumentUserUidTest::view_comment_user_uid

File

core/modules/comment/tests/comment_views_handler_filter_user_uid.test, line 19
Definition of viewsHandlerFilterCommentUserUidTest.

Class

CommentViewsHandlerFilterUserUidTest
Tests the filter_comment_user_uid handler.

Code

function view_comment_user_uid() {
  $view = parent::view_comment_user_uid();
  // Remove the argument.
  $view->set_item('default', 'argument', 'uid_touch', NULL);

  $options = array(
    'id' => 'uid_touch',
    'table' => 'node',
    'field' => 'uid_touch',
    'value' => array($this->loggedInUser->uid),
  );
  $view->add_item('default', 'filter', 'node', 'uid_touch', $options);

  return $view;
}