From d2c11795c0ecd0c9fb7d556253df03a9b912cd58 Mon Sep 17 00:00:00 2001 From: Rich Lott / Artful Robot Date: Thu, 28 Jul 2022 10:01:59 +0100 Subject: [PATCH] HookInterface changed namespace from Civi\Test to Civi\Core --- docs/hooks/usage/symfony.md | 2 +- docs/testing/phpunit.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks/usage/symfony.md b/docs/hooks/usage/symfony.md index 762e435..3bd4491 100644 --- a/docs/hooks/usage/symfony.md +++ b/docs/hooks/usage/symfony.md @@ -47,7 +47,7 @@ methods will be automatically registered with the eponymous events. ```php use Civi\Test\HeadlessInterface; -use Civi\Test\HookInterface; +use Civi\Core\HookInterface; use PHPUnit\Framework\TestCase; class MyTest extends TestCase implements HeadlessInterface, HookInterface { diff --git a/docs/testing/phpunit.md b/docs/testing/phpunit.md index 449966c..27fc32c 100644 --- a/docs/testing/phpunit.md +++ b/docs/testing/phpunit.md @@ -431,7 +431,7 @@ The `\Civi\Test\HeadlessInterface` marks a test-class as [headless](index.md#hea #### HookInterface -The `\Civi\Test\HookInterface` simplifies testing of CiviCRM hooks and events. Your test may listen to a hook by adding an eponymous function. For example, this listens to `hook_civicrm_post`: +The `\Civi\Core\HookInterface` simplifies testing of CiviCRM hooks and events. Your test may listen to a hook by adding an eponymous function. For example, this listens to `hook_civicrm_post`: ```php class MyTest extends PHPUnit_Framework_TestCase -- GitLab