private function ForumTest::doBasicTests in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/forum/src/Tests/ForumTest.php \Drupal\forum\Tests\ForumTest::doBasicTests()
Runs basic tests on the indicated user.
Parameters
\Drupal\Core\Session\AccountInterface $user: The logged in user.
bool $admin: User has 'access administration pages' privilege.
1 call to ForumTest::doBasicTests()
- ForumTest::testForum in core/
modules/ forum/ src/ Tests/ ForumTest.php - Tests forum functionality through the admin and user interfaces.
File
- core/
modules/ forum/ src/ Tests/ ForumTest.php, line 474 - Contains \Drupal\forum\Tests\ForumTest.
Class
- ForumTest
- Create, view, edit, delete, and change forum entries and verify its consistency in the database.
Namespace
Drupal\forum\TestsCode
private function doBasicTests($user, $admin) {
// Login the user.
$this
->drupalLogin($user);
// Attempt to create forum topic under a container.
$this
->createForumTopic($this->forumContainer, TRUE);
// Create forum node.
$node = $this
->createForumTopic($this->forum, FALSE);
// Verify the user has access to all the forum nodes.
$this
->verifyForums($node, $admin);
}