Check for API exception when testing create without params.
authorMattias Michaux <mattias.michaux@gmail.com>
Mon, 16 May 2016 20:01:48 +0000 (22:01 +0200)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 4 Aug 2016 07:21:21 +0000 (17:21 +1000)
tests/phpunit/api/v3/SyntaxConformanceTest.php

index e1af7dcfa7cb7d513a8b8bb7dc496625319a8de7..c58e8f9e7d73600918cb5d65adfd259be858914c 100644 (file)
@@ -1074,12 +1074,12 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
 
   /**
    * @dataProvider entities
-   * @expectedException PHPUnit_Framework_Error
+   * @expectedException CiviCRM_API3_Exception
    * @param $Entity
    */
   public function testWithoutParam_create($Entity) {
     // should create php complaining that a param is missing
-    $result = civicrm_api($Entity, 'Create');
+    $result = civicrm_api3($Entity, 'Create');
   }
 
   /**