function CommentStatisticsUnitTest::testRead
Tests the read method.
Attributes
#[Group('Drupal')]
#[Group('Comment')]
See also
\Drupal\comment\CommentStatistics::read()
File
-
core/
modules/ comment/ tests/ src/ Unit/ CommentStatisticsUnitTest.php, line 102
Class
Namespace
Drupal\Tests\comment\UnitCode
public function testRead() : void {
$this->callsToFetch = 0;
$results = $this->commentStatistics
->read([
'1' => 'boo',
'2' => 'foo',
], 'snafus');
$this->assertEquals([
'something',
'something-else',
], $results);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.