You are here

public function ShareaholicSeqShareCountsTest::testVkCountCallback 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::testVkCountCallback()

File

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

Class

ShareaholicSeqShareCountsTest

Code

public function testVkCountCallback() {

  // given a typical vk counts api response, test that
  // it gives back the expected result (3781)
  $body = 'VK.Share.count(0, 3781);';
  $this->response['body'] = $body;
  $count = $this->share_count
    ->vk_count_callback($this->response);
  $this
    ->assertEquals(3781, $count, 'It should get the correct vk count');
}