projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e50a8
)
Extend location_type_id test to api4
author
Coleman Watts
<coleman@civicrm.org>
Tue, 11 Jun 2019 18:25:41 +0000
(14:25 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Tue, 11 Jun 2019 18:27:02 +0000
(14:27 -0400)
tests/phpunit/api/v3/EmailTest.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/api/v3/EmailTest.php
b/tests/phpunit/api/v3/EmailTest.php
index 4299e87d33258fc3f0baecab224618b025d017c7..3f7719172cd0474c0f5be5d3889535935920df1d 100644
(file)
--- a/
tests/phpunit/api/v3/EmailTest.php
+++ b/
tests/phpunit/api/v3/EmailTest.php
@@
-82,9
+82,11
@@
class api_v3_EmailTest extends CiviUnitTestCase {
* If no location is specified when creating a new email, it should default to
* the LocationType default
*
- * Only API v3
+ * @param int $version
+ * @dataProvider versionThreeAndFour
*/
- public function testCreateEmailDefaultLocation() {
+ public function testCreateEmailDefaultLocation($version) {
+ $this->_apiversion = $version;
$params = $this->_params;
unset($params['location_type_id']);
$result = $this->callAPIAndDocument('email', 'create', $params, __FUNCTION__, __FILE__);