Issue #1062132 by jamiecuthill | iler: Added Enable click tracking and Google Analyti...
[project/addthis.git] / addthis.test
index 826e22a..a3a70f6 100644 (file)
@@ -151,6 +151,10 @@ class AddThisFunctionalityTestCase extends DrupalWebTestCase {
     $edit[AddThis::COMPLIANT_508_KEY] = TRUE;
 
     $edit[AddThis::CLICKBACK_TRACKING_ENABLED_KEY] = TRUE;
+    
+    $edit[AddThis::GOOGLE_ANALYTICS_TRACKING_ENABLED_KEY] = TRUE;
+    
+    $edit[AddThis::GOOGLE_ANALYTICS_SOCIAL_TRACKING_ENABLED_KEY] = TRUE;
 
     $edit[AddThis::ADDRESSBOOK_ENABLED_KEY] = TRUE;
 
@@ -203,6 +207,10 @@ class AddThisFunctionalityTestCase extends DrupalWebTestCase {
 
     $this->addThisClickbackTrackingEnabledSettingShouldBeAbleToBeSaved();
 
+    $this->addThisGoogleAnalyticsTrackingEnabledSettingShouldBeAbleToBeSaved();
+
+    $this->addThisGoogleAnalyticsSocialTrackingEnabledSettingShouldBeAbleToBeSaved();
+
     $this->addThisClickToOpenCompactMenuEnabledSettingShouldBeAbleToBeSaved();
 
     $this->addThisOpenWindowsEnabledSettingShouldBeAbleToBeSaved();
@@ -256,6 +264,16 @@ class AddThisFunctionalityTestCase extends DrupalWebTestCase {
                               'AddThis clickback tracking enabled setting should be able to be saved.');
   }
 
+  private function addThisGoogleAnalyticsTrackingEnabledSettingShouldBeAbleToBeSaved() {
+    $this->assertFieldChecked('edit-addthis-google-analytics-tracking-enabled',
+                              'AddThis Google Analytics tracking enabled setting should be able to be saved.');
+  }
+
+  private function addThisGoogleAnalyticsSocialTrackingEnabledSettingShouldBeAbleToBeSaved() {
+    $this->assertFieldChecked('edit-addthis-google-analytics-tracking-enabled',
+                              'AddThis Google Analytics social tracking enabled setting should be able to be saved.');
+  }
+
   private function addThisClickToOpenCompactMenuEnabledSettingShouldBeAbleToBeSaved() {
     $this->assertFieldChecked('edit-addthis-click-to-open-compact-menu-enabled',
                               'AddThis click to open compact menu setting should be able to be saved.');