From 609900e98539e5557ed68db4dcf5211e57ee1584 Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Sun, 25 Oct 2015 20:57:06 +0100 Subject: [PATCH] domain_version seemed to be mandatory when creating a domain. So if unit tests create a domain, there should be a domain_version. --- tests/phpunit/api/v3/SettingTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/api/v3/SettingTest.php b/tests/phpunit/api/v3/SettingTest.php index c1335ddb32..7893ceda6e 100644 --- a/tests/phpunit/api/v3/SettingTest.php +++ b/tests/phpunit/api/v3/SettingTest.php @@ -52,6 +52,7 @@ class api_v3_SettingTest extends CiviUnitTestCase { parent::setUp(); $params = array( 'name' => 'Default Domain Name', + 'domain_version' => '4.7', ); $result = $this->callAPISuccess('domain', 'get', $params); if (empty($result['id'])) { @@ -515,6 +516,7 @@ class api_v3_SettingTest extends CiviUnitTestCase { public function testDefaults() { $domparams = array( 'name' => 'B Team Domain', + 'domain_version' => '4.7', ); $dom = $this->callAPISuccess('domain', 'create', $domparams); $params = array( -- 2.25.1