1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Fixed errors in eIPHandlerTest::testAdd_ban() that broke all tests

This commit is contained in:
Nick Liu 2020-02-25 13:13:02 +01:00
parent 22323b3c77
commit a350eb41f6
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -105,12 +105,12 @@
'-8' => 0 // unknown
);
define('LAN_SETSAVED', "Saved"); // for preferences.
defined('LAN_SETSAVED') or define('LAN_SETSAVED', "Saved"); // for preferences.
//set ban duration pref.
e107::getConfig()->set('ban_durations',$banDurations)->save(false,true, false);
$result = $this->ip->add_ban(2,"unit test generated ban", '123.123.123.123', 0,);
$result = $this->ip->add_ban(2,"unit test generated ban", '123.123.123.123', 0);
$this->assertTrue($result);