Fixed tests coding style.

This commit is contained in:
Jan Böhmer 2020-03-15 13:57:50 +01:00
parent fd61c8d9e2
commit da09873be5
6 changed files with 37 additions and 42 deletions

View file

@ -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, [], []));