From cd976ae627e5fc117882f0a6c4ce1ef69b1604d8 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 11 Jun 2019 14:25:41 -0400 Subject: [PATCH] Extend location_type_id test to api4 --- tests/phpunit/api/v3/EmailTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/api/v3/EmailTest.php b/tests/phpunit/api/v3/EmailTest.php index 4299e87d33..3f7719172c 100644 --- 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__); -- 2.25.1