From dded326f11ef8a935cad4f4160b1ab7ad597d6e8 Mon Sep 17 00:00:00 2001 From: alexandergull Date: Mon, 10 Apr 2023 11:22:44 +0500 Subject: [PATCH] Fix. phpUnit. TC and BFP tests fixed. --- tests/Standalone/TestBFP.php | 3 +++ tests/Standalone/TestTC.php | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tests/Standalone/TestBFP.php b/tests/Standalone/TestBFP.php index 43c1edc43..16ca1204a 100644 --- a/tests/Standalone/TestBFP.php +++ b/tests/Standalone/TestBFP.php @@ -2,6 +2,7 @@ use CleantalkSP\SpbctWP\DB; use CleantalkSP\SpbctWP\Firewall\BFP; +use CleantalkSP\Updater\Updater; class TestBFP extends PHPUnit\Framework\TestCase { @@ -11,7 +12,9 @@ class TestBFP extends PHPUnit\Framework\TestCase protected function setUp() { global $spbc; + Updater::runUpdateScripts('2.105', '2.106'); $this->db = DB::getInstance(); + //test string $this->bfp = new BFP( array( diff --git a/tests/Standalone/TestTC.php b/tests/Standalone/TestTC.php index fbea234a0..6f7e2d8ad 100644 --- a/tests/Standalone/TestTC.php +++ b/tests/Standalone/TestTC.php @@ -2,6 +2,7 @@ use CleantalkSP\SpbctWP\DB; use CleantalkSP\SpbctWP\Firewall\TC; +use CleantalkSP\Updater\Updater; class TestTC extends PHPUnit\Framework\TestCase { @@ -12,6 +13,7 @@ protected function setUp() { global $spbc; $this->db = DB::getInstance(); + Updater::runUpdateScripts('2.105', '2.106'); $this->tc = new TC( array(