domain_version seemed to be mandatory when creating a domain.
authorJohan Vervloet <johanv@johanv.org>
Sun, 25 Oct 2015 19:57:06 +0000 (20:57 +0100)
committerJohan Vervloet <johanv@johanv.org>
Sun, 25 Oct 2015 19:57:06 +0000 (20:57 +0100)
So if unit tests create a domain, there should be a domain_version.

tests/phpunit/api/v3/SettingTest.php

index c1335ddb3238c358be1204b70574bc70b4a4eb45..7893ceda6e4a6180c54b168e05617c10e60072be 100644 (file)
@@ -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(