aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/security/BanManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/security/BanManagerTest.php')
-rw-r--r--tests/security/BanManagerTest.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/security/BanManagerTest.php b/tests/security/BanManagerTest.php
index bba7c8ad..29d2791b 100644
--- a/tests/security/BanManagerTest.php
+++ b/tests/security/BanManagerTest.php
@@ -3,8 +3,9 @@
3 3
4namespace Shaarli\Security; 4namespace Shaarli\Security;
5 5
6use PHPUnit\Framework\TestCase; 6use Psr\Log\LoggerInterface;
7use Shaarli\FileUtils; 7use Shaarli\Helper\FileUtils;
8use Shaarli\TestCase;
8 9
9/** 10/**
10 * Test coverage for BanManager 11 * Test coverage for BanManager
@@ -32,7 +33,7 @@ class BanManagerTest extends TestCase
32 /** 33 /**
33 * Prepare or reset test resources 34 * Prepare or reset test resources
34 */ 35 */
35 public function setUp() 36 protected function setUp(): void
36 { 37 {
37 if (file_exists($this->banFile)) { 38 if (file_exists($this->banFile)) {
38 unlink($this->banFile); 39 unlink($this->banFile);
@@ -387,7 +388,7 @@ class BanManagerTest extends TestCase
387 3, 388 3,
388 1800, 389 1800,
389 $this->banFile, 390 $this->banFile,
390 $this->logFile 391 $this->createMock(LoggerInterface::class)
391 ); 392 );
392 } 393 }
393} 394}