Disable failing timestamp test in the 4.6 series
authorEileen McNaughton <eileen@mcnaughty.com>
Sat, 2 May 2015 23:35:09 +0000 (11:35 +1200)
committerEileen McNaughton <eileen@mcnaughty.com>
Sat, 2 May 2015 23:35:09 +0000 (11:35 +1200)
Per CRM-16204 we should allow this properly in 4.7

tests/phpunit/api/v3/SyntaxConformanceTest.php

index e3f8ba68d6ef0f090ac5fa63f349da0d3409a2c9..bb4854c1b788489e9b9df137cf8042c7267b986f 100644 (file)
@@ -1121,9 +1121,12 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
       $this->assertArrayHasKey('type', $specs, "the _spec function for $entityName field $field does not specify the type");
       switch ($specs['type']) {
         case CRM_Utils_Type::T_DATE:
-        case CRM_Utils_Type::T_TIMESTAMP:
           $entity[$fieldName] = '2012-05-20';
           break;
+        
+        case CRM_Utils_Type::T_TIMESTAMP:
+          // 4.6 doesn't support timestamp updates from 4.7 we should uncomment this. See CRM-16204
+          continue;
 
         //case CRM_Utils_Type::T_DATETIME: