diff options
Diffstat (limited to 'tests/security/BanManagerTest.php')
-rw-r--r-- | tests/security/BanManagerTest.php | 9 |
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 | ||
4 | namespace Shaarli\Security; | 4 | namespace Shaarli\Security; |
5 | 5 | ||
6 | use PHPUnit\Framework\TestCase; | 6 | use Psr\Log\LoggerInterface; |
7 | use Shaarli\FileUtils; | 7 | use Shaarli\Helper\FileUtils; |
8 | use 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 | } |