CommentStatisticsUnitTest::$database

Same name and namespace in other branches
  1. 9 core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php \Drupal\Tests\comment\Unit\CommentStatisticsUnitTest::database
  2. 8.9.x core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php \Drupal\Tests\comment\Unit\CommentStatisticsUnitTest::database
  3. 10 core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php \Drupal\Tests\comment\Unit\CommentStatisticsUnitTest::database

Mock database connection.

Type: \Drupal\Core\Database\Connection

File

core/modules/comment/tests/src/Unit/CommentStatisticsUnitTest.php, line 37

Class

CommentStatisticsUnitTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21comment%21src%21CommentStatistics.php/class/CommentStatistics/11.x" title="CommentStatistics" class="local">\Drupal\comment\CommentStatistics</a> @group comment

Namespace

Drupal\Tests\comment\Unit

Code

protected $database;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.