namespace api\v4\Entity;
-use api\v4\UnitTestCase;
+use api\v4\Api4TestBase;
use Civi\Crypto\CryptoTestTrait;
+use Civi\Test\TransactionalInterface;
use Psr\Log\LoggerInterface;
/**
* @group headless
*/
-class RotateKeyTest extends UnitTestCase {
+class RotateKeyTest extends Api4TestBase implements TransactionalInterface {
use CryptoTestTrait;
/**
* Set up baseline for testing
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
\CRM_Utils_Hook::singleton()->setHook('civicrm_crypto', [$this, 'registerExampleKeys']);
\CRM_Utils_Hook::singleton()->setHook('civicrm_cryptoRotateKey', [$this, 'onRotateKey']);