syntaxConformanceTest - give clearer message on E-Notice
authorEileen McNaughton <eileen@fuzion.co.nz>
Sun, 27 Apr 2014 21:47:23 +0000 (14:47 -0700)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sun, 27 Apr 2014 21:47:23 +0000 (14:47 -0700)
tests/phpunit/api/v3/SyntaxConformanceTest.php

index a899ba22c2306e402ea9b66415e24fba9dd025cd..4a2b0ec7e0cbd1cc975c6a3a5a2f3b846a58ded9 100644 (file)
@@ -800,6 +800,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
         //@todo id & entity_id are correct but we should fix currency & frequency_day
         continue;
       }
+      $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: