You are here

public function ShareaholicSeqShareCountsTest::testMissingServices in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

Same name and namespace in other branches
  1. 8 lib/social-share-counts/seq_share_count_test.php \ShareaholicSeqShareCountsTest::testMissingServices()

This test may fail if the APIs fail

File

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

Class

ShareaholicSeqShareCountsTest

Code

public function testMissingServices() {

  // test that this function returns response WITHOUT facebook
  $share_count = new ShareaholicSeqShareCount('https://dev.losloslos.com/', $this->services, $this->options);
  $response = $share_count
    ->get_counts();
  $this
    ->assertNotNull($response, 'The response array should not be null');
  $this
    ->assertNull($response['data']['facebook'], 'The facebook count should be null');
}