/** * Tests the read method. * * @see \Drupal\comment\CommentStatistics::read() * * @group Drupal * @group Comment */ public function testRead() { $this->calls_to_fetch = 0; $results = $this->commentStatistics->read(array('1' => 'boo', '2' => 'foo'), 'snafoos'); $this->assertEquals($results, array('something', 'something-else')); }
/** * {@inheritdoc} */ public function updateEntityStatistics(CommentInterface $comment) { $this->statistics->update($comment); }