You are here

public function ShareaholicSeqShareCountsTest::testFancyCountCallback in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

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

File

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

Class

ShareaholicSeqShareCountsTest

Code

public function testFancyCountCallback() {
  $body = '__FIB.collectCount({"url": "http://www.google.com", "count": 26, "thing_url": "http://fancy.com/things/263001623", "showcount": 1});';
  $this->response['body'] = $body;
  $count = $this->share_count
    ->fancy_count_callback($this->response);
  $this
    ->assertEquals(26, $count, 'It should get the correct fancy count');
}