Merge pull request #14992 from sushantpaste/membership-fee-token
[civicrm-core.git] / Civi / Test / HeadlessInterface.php
index d9e2c6332e5212cc5555f7efff9284538596abc0..95227f76856ccf292a9429451964beab8333a929 100644 (file)
@@ -7,7 +7,7 @@ namespace Civi\Test;
  * @package Civi\Test
  *
  * To run your test against a fake, headless database, flag it with the
- * HeadlessInterface. CiviTestListener will automatically boot
+ * HeadlessInterface. CiviTestListener will automatically boot Civi.
  *
  * Alternatively, if you wish to run a test in a live (CMS-enabled) environment,
  * flag it with EndToEndInterface.
@@ -23,11 +23,13 @@ namespace Civi\Test;
 interface HeadlessInterface {
 
   /**
-   * The setupHeadless functions runs at the start of each test case.
+   * The setupHeadless function runs at the start of each test case, right before
+   * the headless environment reboots.
+   *
    * It should perform any necessary steps required for putting the database
    * in a consistent baseline -- such as loading schema and extensions.
    *
-   * The utility class `\Civi\Test` provides a number of helper functions
+   * The utility `\Civi\Test::headless()` provides a number of helper functions
    * for managing this setup, and it includes optimizations to avoid redundant
    * setup work.
    *