public function ShareaholicSeqShareCountsTest::testOdnoklassnikiCountCallback in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3
Same name and namespace in other branches
- 8 lib/social-share-counts/seq_share_count_test.php \ShareaholicSeqShareCountsTest::testOdnoklassnikiCountCallback()
File
- lib/
social-share-counts/ seq_share_count_test.php, line 151
Class
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');
}