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(