You are here

public function FacebookTrackingPixelTestHelper::enable_tracking_testing_role in Facebook Tracking Pixel 8

Same name and namespace in other branches
  1. 7 tests/facebook_tracking_pixel.helper.php \facebookTrackingPixel\FacebookTrackingPixelTestHelper::enable_tracking_testing_role()

Enable tracking for only the testing role.

File

tests/facebook_tracking_pixel.helper.php, line 27
Contains tests for the Facebook Tracking Pixel module.

Class

FacebookTrackingPixelTestHelper

Namespace

facebookTrackingPixel

Code

public function enable_tracking_testing_role() {

  // Inverse the visibility.
  variable_set('facebook_tracking_pixel_visibility_roles', 1);
  variable_set('facebook_tracking_pixel_roles_fb_pixel_tester', 1);
  variable_set('facebook_tracking_pixel_roles_administrator', 0);
  variable_set('facebook_tracking_pixel_roles_anonymous_user', 0);
  variable_set('facebook_tracking_pixel_roles_authenticated_user', 0);
}