public function ShareaholicSeqShareCountsTest::testRawResponseObject 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::testRawResponseObject()
This test may fail if the APIs fail
File
- lib/
social-share-counts/ seq_share_count_test.php, line 229
Class
Code
public function testRawResponseObject() {
// test that the class is storing the raw responses
$response = $this->share_count
->get_counts();
$this
->assertNotNull($this->share_count->raw_response, 'The raw response object should not be null');
foreach ($this->services as $service) {
$this
->assertNotNull($this->share_count->raw_response[$service], 'The raw response for ' . $service . ' should not be null');
}
}