You are here

public function ShareaholicSeqShareCountsTest::setUp 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::setUp()

File

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

Class

ShareaholicSeqShareCountsTest

Code

public function setUp() {
  $this->url = 'https://www.google.com';
  $this->services = array_keys(ShareaholicSeqShareCount::get_services_config());
  $this->options = array();
  $this->share_count = new ShareaholicSeqShareCount($this->url, $this->services, $this->options);

  // all callbacks take a predefined response structure
  $this->response = array(
    'response' => array(
      'code' => 200,
    ),
  );
}