public function ShareaholicSeqShareCountsTest::testGetCount in Share Buttons, Related Posts, Content Analytics - Shareaholic 8
Same name and namespace in other branches
- 7.3 lib/social-share-counts/seq_share_count_test.php \ShareaholicSeqShareCountsTest::testGetCount()
This test may fail if the APIs fail
File
- lib/
social-share-counts/ seq_share_count_test.php, line 191
Class
Code
public function testGetCount() {
// test that this function returns the expected API response
$response = $this->share_count
->get_counts();
$this
->assertNotNull($response, 'The response array should not be null');
foreach ($this->services as $service) {
$this
->assertNotNull($response['data'][$service], 'The ' . $service . ' count should not be null');
}
}