Extend location_type_id test to api4
authorColeman Watts <coleman@civicrm.org>
Tue, 11 Jun 2019 18:25:41 +0000 (14:25 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 11 Jun 2019 18:27:02 +0000 (14:27 -0400)
tests/phpunit/api/v3/EmailTest.php

index 4299e87d33258fc3f0baecab224618b025d017c7..3f7719172cd0474c0f5be5d3889535935920df1d 100644 (file)
@@ -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__);