From a257a57ca882342dc84db6fcd8037c79f63807d9 Mon Sep 17 00:00:00 2001 From: Tatiana Glushchenko Date: Mon, 29 Sep 2025 17:48:21 +1300 Subject: [PATCH] factor_token: Add tearDown method to runtests Resolves error "Property 'factor' defined in 'token_factor_test' was not reset after the test!" --- factor/token/tests/factor_test.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/factor/token/tests/factor_test.php b/factor/token/tests/factor_test.php index 0440ee01..0a88bb94 100644 --- a/factor/token/tests/factor_test.php +++ b/factor/token/tests/factor_test.php @@ -33,6 +33,11 @@ public function setUp(): void { $this->factor = new \factor_token\factor('token'); } + protected function tearDown(): void { + $this->factor = null; + parent::tearDown(); + } + public function test_calculate_expiry_time_in_general() { $timestamp = 1642213800; // 1230 UTC.