Install SK as part of headless test baseline
authorlarssandergreen <lars@wildsight.ca>
Mon, 3 Jul 2023 18:14:54 +0000 (12:14 -0600)
committerlarssandergreen <lars@wildsight.ca>
Mon, 3 Jul 2023 18:14:54 +0000 (12:14 -0600)
Civi/Test.php
tests/phpunit/api/v4/Api4TestBase.php

index cd01116417dfa45b6f80587940ff4b4a38f02fca..f5e09b274008e4a19a1326223852a2c11040a45f 100644 (file)
@@ -125,6 +125,7 @@ class Test {
       ->callback(function ($ctx) {
         \Civi\Test::data()->populate();
       }, 'populate');
+    $builder->install(['org.civicrm.search_kit']);
     return $builder;
   }
 
index b41495cda5f94d80de0ec4753b42e78f942ede2a..3a9d3cee9df009e3c46ec56c9ce8e5f293af550f 100644 (file)
@@ -46,8 +46,7 @@ class Api4TestBase extends TestCase implements HeadlessInterface {
   }
 
   public function setUpHeadless(): CiviEnvBuilder {
-    // TODO: search_kit should probably be part of the 'headless()' baseline.
-    return Test::headless()->install(['org.civicrm.search_kit'])->apply();
+    return Test::headless()->apply();
   }
 
   /**