'new user']); $new_user->save(); $comment = Comment::create([ 'uid' => $new_user->uid->value, 'entity_id' => $this->nodeUserCommented->id(), 'entity_type' => 'node', 'field_name' => 'comment', 'subject' => 'if a woodchuck could chuck wood.', ]); $comment->save(); $view = Views::getView('test_comment_user_uid'); $this->executeView($view, [$this->account->id()]); $result_set = [ [ 'nid' => $this->nodeUserPosted->id(), ], [ 'nid' => $this->nodeUserCommented->id(), ], ]; $column_map = ['nid' => 'nid']; $this->assertIdenticalResultset($view, $result_set, $column_map); } }