コード例 #1
0
 /**
  * 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'));
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function updateEntityStatistics(CommentInterface $comment)
 {
     $this->statistics->update($comment);
 }