You are here

public function ShareaholicSeqShareCountsTest::testYummlyCountCallback in Share Buttons, Related Posts, Content Analytics - Shareaholic 8

Same name and namespace in other branches
  1. 7.3 lib/social-share-counts/seq_share_count_test.php \ShareaholicSeqShareCountsTest::testYummlyCountCallback()

File

lib/social-share-counts/seq_share_count_test.php, line 160

Class

ShareaholicSeqShareCountsTest

Code

public function testYummlyCountCallback() {
  $body = '{"count":760}';
  $this->response['body'] = $body;
  $count = $this->share_count
    ->yummly_count_callback($this->response);
  $this
    ->assertEquals(760, $count, 'It should get the correct yummly count');
}