You are here

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

File

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

Class

ShareaholicSeqShareCountsTest

Code

public function testOdnoklassnikiCountCallback() {

  // given a typical odnoklassniki counts api response, test that
  // it gives back the expected result (1)
  $body = "ODKL.updateCount('odklcnt0','1');";
  $this->response['body'] = $body;
  $count = $this->share_count
    ->odnoklassniki_count_callback($this->response);
  $this
    ->assertEquals(1, $count, 'It should get the correct odnoklassniki count');
}