From 0ce6d639992e0f361560e7a7abc317cf52eaedfa Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 27 Apr 2014 14:47:23 -0700 Subject: [PATCH] syntaxConformanceTest - give clearer message on E-Notice --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index a899ba22c2..4a2b0ec7e0 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -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: -- 2.25.1