Merge pull request #22182 from MegaphoneJon/core-2974
[civicrm-core.git] / Civi / Test.php
index 1509481623588f1cbcccae85aee8e32f7f6313d9..a0d67697470284b41d3fd5fc4909198b8659d3d0 100644 (file)
@@ -212,6 +212,16 @@ class Test {
     return $result['data'];
   }
 
+  /**
+   * @return \Civi\Test\EventChecker
+   */
+  public static function eventChecker() {
+    if (!isset(self::$singletons['eventChecker'])) {
+      self::$singletons['eventChecker'] = new \Civi\Test\EventChecker();
+    }
+    return self::$singletons['eventChecker'];
+  }
+
   /**
    * Prepare and execute a batch of SQL statements.
    *