function CommentTestBase::setCommentSettings

Sets a comment settings variable for the article content type.

Parameters

string $name: Name of variable.

string $value: Value of variable.

string $message: Status message to display.

15 calls to CommentTestBase::setCommentSettings()
CommentAttributesTest::setUp in drupal/core/modules/rdf/lib/Drupal/rdf/Tests/CommentAttributesTest.php
Sets up a Drupal site for running functional and integration tests.
CommentInterfaceTest::testCommentInterface in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php
Tests the comment interface.
CommentNodeAccessTest::testThreadedCommentView in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentNodeAccessTest.php
Test that threaded comments can be viewed.
CommentPagerTest::testCommentNewPageIndicator in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentPagerTest.php
Tests comment_new_page_count().
CommentPagerTest::testCommentOrderingThreading in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentPagerTest.php
Tests comment ordering and threading.

... See full list

File

drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php, line 266
Contains Drupal\comment\Tests\CommentTestBase.

Class

CommentTestBase
Provides setup and helper methods for comment tests.

Namespace

Drupal\comment\Tests

Code

function setCommentSettings($name, $value, $message) {
  variable_set($name . '_article', $value);

  // Display status message.
  $this
    ->pass($message);
}