diff --git a/tests/PHPUnit/Integration/PeriodIsRange_DateIsLastN_MetadataAndNormalAPITest.php b/tests/PHPUnit/Integration/PeriodIsRange_DateIsLastN_MetadataAndNormalAPITest.php
index 146f0a4e8c2e7b324ec6c0415bf7bcb5c720548f..57720a4fe80391398e7cf09e9a5185adc42717ff 100755
--- a/tests/PHPUnit/Integration/PeriodIsRange_DateIsLastN_MetadataAndNormalAPITest.php
+++ b/tests/PHPUnit/Integration/PeriodIsRange_DateIsLastN_MetadataAndNormalAPITest.php
@@ -54,6 +54,10 @@ class Test_Piwik_Integration_PeriodIsRange_DateIsLastN_MetadataAndNormalAPI exte
      */
     public function testApi($api, $params)
     {
+	    if (self::$shouldSkipTestThisTime)
+	    {
+		    return;
+	    }
 	    $this->runApiTests($api, $params);
     }