Ensure that we are testing on multiple domains
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 3 Jul 2020 01:57:58 +0000 (11:57 +1000)
committerGitHub <noreply@github.com>
Fri, 3 Jul 2020 01:57:58 +0000 (11:57 +1000)
Co-authored-by: colemanw <coleman@civicrm.org>
tests/phpunit/CRM/Core/I18n/SchemaTest.php

index d3a756e41dcc1cb826fb5c11a3f3534cd3a03b10..3eae6703f0fd5e82296b33c8d9c2af4579d7e992 100644 (file)
@@ -45,6 +45,7 @@ class CRM_Core_I18n_SchemaTest extends CiviUnitTestCase {
   public function testI18nSchemaRewrite($table, $expectedRewrite) {
     CRM_Core_I18n_Schema::makeMultilingual('en_US');
     $domains = $this->callAPISuccess('Domain', 'get')['values'];
+    $this->assertGreaterThan(1, count($domains));
     foreach ($domains as $domain) {
       // If the DB is multilingual the locales value must be not-null for all domains
       // to ensure the db can be accessed (I suspect it must be the same for all locales but