From 01ee5d4210742cb205b68c7f3c5d25b9383d63ff Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Mon, 16 May 2016 22:01:48 +0200 Subject: [PATCH] Check for API exception when testing create without params. --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index e1af7dcfa7..c58e8f9e7d 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -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'); } /** -- 2.25.1