Definition of viewsHandlerFilterCommentUserUidTest.
<?php /** * @file * Definition of viewsHandlerFilterCommentUserUidTest. */ require_once BACKDROP_ROOT . '/core/modules/comment/tests/comment_views_handler_argument_user_uid.test'; /** * Tests the filter_comment_user_uid handler. * * The actual stuff is done in the parent class. */ class CommentViewsHandlerFilterUserUidTest extends CommentViewsHandlerArgumentUserUidTest { /** * 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; } }