/** * Register API libs in the construct, so we don't need to do that every time */ public function __construct() { $load_libraries = array('googleanalytics'); $this->loaded_api_libs = count($load_libraries); Yoast_Api_Libs::load_api_libraries($load_libraries); parent::__construct(); }
/** * Setting this up for each test */ public function setUp() { parent::setUp(); // Update the options $options_singleton = Yoast_GA_Options::instance(); $options = $options_singleton->get_options(); $options['track_internal_as_outbound'] = '/test,/out/'; $options['track_outbound'] = 1; $options_singleton->update_option($options); $this->class_instance = new Yoast_GA_JS(); }
public function __construct() { parent::__construct(); $this->class_instance = new Yoast_GA_Admin(); }
public function __construct() { new Yoast_Api_Google(); $this->class_instance = Yoast_GA_Dashboards::get_instance(); parent::__construct(); }
public function __construct() { parent::__construct(); $this->class_instance = Yoast_Google_Analytics::get_instance(); }