api_v3_UtilsTest - Fix regression
authorTim Otten <totten@civicrm.org>
Wed, 2 Apr 2014 21:46:08 +0000 (14:46 -0700)
committerTim Otten <totten@civicrm.org>
Sun, 6 Apr 2014 04:26:37 +0000 (21:26 -0700)
tests/phpunit/api/v3/UtilsTest.php

index 651cc46d7c5811bae857049a1a6ade3cea51aa78..1365c5152781656e8e11a9cfbea1b48741557528 100644 (file)
@@ -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;