/**
* Get the data source used for testing.
*
- * @param string|NULL $part
+ * @param string|null $part
* One of NULL, 'hostspec', 'port', 'username', 'password', 'database'.
* @return string|array|NULL
* If $part is omitted, return full DSN array.
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.
*