mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-22 11:54:41 +02:00
Applied code style to tests/
This commit is contained in:
parent
f861de791f
commit
fe0f69f762
44 changed files with 427 additions and 306 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).
|
||||
*
|
||||
|
@ -31,7 +34,7 @@ class FAIconGeneratorTest extends WebTestCase
|
|||
*/
|
||||
protected $service;
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp(); // TODO: Change the autogenerated stub
|
||||
|
||||
|
@ -57,15 +60,15 @@ class FAIconGeneratorTest extends WebTestCase
|
|||
/**
|
||||
* @dataProvider fileExtensionDataProvider
|
||||
*/
|
||||
public function testFileExtensionToFAType(string $ext, string $expected)
|
||||
public function testFileExtensionToFAType(string $ext, string $expected): void
|
||||
{
|
||||
$this->assertEquals($expected, $this->service->fileExtensionToFAType($ext));
|
||||
$this->assertSame($expected, $this->service->fileExtensionToFAType($ext));
|
||||
}
|
||||
|
||||
public function testGenerateIconHTML()
|
||||
public function testGenerateIconHTML(): void
|
||||
{
|
||||
$this->assertEquals('<i class="fas fa-file "></i>', $this->service->generateIconHTML('fa-file'));
|
||||
$this->assertEquals('<i class="far fa-file "></i>', $this->service->generateIconHTML('fa-file', 'far'));
|
||||
$this->assertEquals('<i class="far fa-file fa-2x"></i>', $this->service->generateIconHTML('fa-file', 'far', 'fa-2x'));
|
||||
$this->assertSame('<i class="fas fa-file "></i>', $this->service->generateIconHTML('fa-file'));
|
||||
$this->assertSame('<i class="far fa-file "></i>', $this->service->generateIconHTML('fa-file', 'far'));
|
||||
$this->assertSame('<i class="far fa-file fa-2x"></i>', $this->service->generateIconHTML('fa-file', 'far', 'fa-2x'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue