mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-23 20:35:03 +02:00
Fixed tests coding style.
This commit is contained in:
parent
fd61c8d9e2
commit
da09873be5
6 changed files with 37 additions and 42 deletions
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
|
||||
*
|
||||
|
@ -28,7 +31,6 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|||
|
||||
class EventLoggerTest extends WebTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* @var EventLogger
|
||||
*/
|
||||
|
@ -43,13 +45,12 @@ class EventLoggerTest extends WebTestCase
|
|||
$this->service = self::$container->get(EventLogger::class);
|
||||
}
|
||||
|
||||
public function testShouldBeAdded()
|
||||
public function testShouldBeAdded(): void
|
||||
{
|
||||
$event1 = new UserLoginLogEntry('127.0.0.1');
|
||||
$event2 = new UserLogoutLogEntry('127.0.0.1');
|
||||
$event2->setLevel(AbstractLogEntry::LEVEL_CRITICAL);
|
||||
|
||||
|
||||
//Test without restrictions
|
||||
$this->assertTrue($this->service->shouldBeAdded($event1, 7, [], []));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue