From 8d6c2a773f6b2dd78b03940699db0dae5db563b5 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 13 Jun 2013 11:05:00 +1200 Subject: [PATCH] fix params on documentMe call --- tests/phpunit/CiviTest/CiviUnitTestCase.php | 4 ++-- tests/phpunit/api/v3/UFFieldTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index 08d772602f..660273221a 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -653,9 +653,9 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase { * @param string $function - pass this in to create a generated example * @param string $file - pass this in to create a generated example */ - function callApiWithSuccessAndDocument($entity, $action, $params){ + function callApiWithSuccessAndDocument($entity, $action, $params, $function, $filename, $description = "", $subfile = NULL, $action = NULL){ $result = $this->callAPISuccess($entity, $action, $params); - $this->documentMe($params, $result, $function, $file); + $this->documentMe($params, $result, $function, $filename, $description, $subfile, $action); return $result; } diff --git a/tests/phpunit/api/v3/UFFieldTest.php b/tests/phpunit/api/v3/UFFieldTest.php index eaea357d13..4d678873b5 100644 --- a/tests/phpunit/api/v3/UFFieldTest.php +++ b/tests/phpunit/api/v3/UFFieldTest.php @@ -176,7 +176,7 @@ class api_v3_UFFieldTest extends CiviUnitTestCase { $this->callAPISuccess($this->_entity, 'create', $this->_params); $params = array('version' => 3); - $result = $this->callApiWithSuccessAndDocument($this->_entity, 'get', $params); + $result = $this->callApiWithSuccessAndDocument($this->_entity, 'get', $params, __FUNCTION__, __FILE__); $this->getAndCheck($this->_params, $result['id'], $this->_entity); } -- 2.25.1