From: Tim Otten Date: Wed, 2 Apr 2014 21:46:08 +0000 (-0700) Subject: api_v3_UtilsTest - Fix regression X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cde12543a93dbc6097d1eaf15a5a3cfd5545d209;p=civicrm-core.git api_v3_UtilsTest - Fix regression --- diff --git a/tests/phpunit/api/v3/UtilsTest.php b/tests/phpunit/api/v3/UtilsTest.php index 651cc46d7c..1365c51527 100644 --- a/tests/phpunit/api/v3/UtilsTest.php +++ b/tests/phpunit/api/v3/UtilsTest.php @@ -117,7 +117,7 @@ class api_v3_UtilsTest extends CiviUnitTestCase { $dispatcher = new \Symfony\Component\EventDispatcher\EventDispatcher(); $dispatcher->addSubscriber(new \Civi\API\Subscriber\PermissionCheck()); $kernel = new \Civi\API\Kernel($dispatcher); - $apiRequest = $kernel->createRequest($entity, $action, $params, NULL); + $apiRequest = \Civi\API\Request::create($entity, $action, $params, NULL); try { $kernel->authorize(NULL, $apiRequest); return TRUE;