'Tests handler filter_comment_user_uid', 'description' => 'Tests the user posted or commented filter handler', 'group' => 'Views Modules', ); } /** * Override the view from the argument test case to remove the argument and * add filter with the uid as the value. */ 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; } }