Skip to content

Commit

Permalink
Fix. phpUnit. TC and BFP tests fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergull committed Apr 10, 2023
1 parent 89b4c9b commit dded326
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Standalone/TestBFP.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use CleantalkSP\SpbctWP\DB;
use CleantalkSP\SpbctWP\Firewall\BFP;
use CleantalkSP\Updater\Updater;

class TestBFP extends PHPUnit\Framework\TestCase
{
Expand All @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions tests/Standalone/TestTC.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use CleantalkSP\SpbctWP\DB;
use CleantalkSP\SpbctWP\Firewall\TC;
use CleantalkSP\Updater\Updater;

class TestTC extends PHPUnit\Framework\TestCase
{
Expand All @@ -12,6 +13,7 @@ protected function setUp()
{
global $spbc;
$this->db = DB::getInstance();
Updater::runUpdateScripts('2.105', '2.106');
$this->tc =
new TC(
array(
Expand Down

0 comments on commit dded326

Please sign in to comment.