You are here

public function ShareaholicCurlMultiShareCountsTest::testGetCount in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

Same name and namespace in other branches
  1. 8 lib/social-share-counts/curl_multi_share_count_test.php \ShareaholicCurlMultiShareCountsTest::testGetCount()

File

lib/social-share-counts/curl_multi_share_count_test.php, line 26

Class

ShareaholicCurlMultiShareCountsTest

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');
  }
}