$this->
assertLessThan($comment['weight'
],
$body['weight'
]);
// Check form order.
$display = EntityFormDisplay::
load('node.forum.default'
);
$body =
$display->
getComponent('body'
);
$comment =
$display->
getComponent('comment_forum'
);
$taxonomy =
$display->
getComponent('taxonomy_forums'
);
// Assert category comes before body in order.
$this->
assertLessThan($body['weight'
],
$taxonomy['weight'
]);
$this->
generateForumTopics();
// Log in an unprivileged user to view the forum topics and generate an
// active forum topics list.
$this->
drupalLogin($this->webUser
);
// Verify that this user is shown a message that they may not post content.
$this->
drupalGet('forum/' .
$this->forum
['tid'
]);
$this->
assertSession()->
pageTextContains('You are not allowed to post new content in the forum'
);
// Log in, and do basic tests for a user with permission to edit any forum
// content.
$this->
doBasicTests($this->editAnyTopicsUser, TRUE
);