mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-16 14:39:37 +00:00
Ran rector and made tests final
This commit is contained in:
parent
43d72faf48
commit
b21d294cf8
162 changed files with 407 additions and 393 deletions
|
|
@ -28,10 +28,8 @@ use App\Services\Attachments\AttachmentPathResolver;
|
|||
use const DIRECTORY_SEPARATOR;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class AttachmentPathResolverTest extends WebTestCase
|
||||
final class AttachmentPathResolverTest extends WebTestCase
|
||||
{
|
||||
protected string $media_path;
|
||||
protected string $footprint_path;
|
||||
protected $projectDir_orig;
|
||||
protected $projectDir;
|
||||
/**
|
||||
|
|
@ -46,8 +44,8 @@ class AttachmentPathResolverTest extends WebTestCase
|
|||
|
||||
$this->projectDir_orig = realpath(self::$kernel->getProjectDir());
|
||||
$this->projectDir = str_replace('\\', '/', $this->projectDir_orig);
|
||||
$this->media_path = $this->projectDir.'/public/media';
|
||||
$this->footprint_path = $this->projectDir.'/public/img/footprints';
|
||||
$media_path = $this->projectDir.'/public/media';
|
||||
$footprint_path = $this->projectDir.'/public/img/footprints';
|
||||
|
||||
$this->service = self::getContainer()->get(AttachmentPathResolver::class);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use PHPUnit\Framework\Attributes\DataProvider;
|
|||
use App\Services\Attachments\AttachmentURLGenerator;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class AttachmentURLGeneratorTest extends WebTestCase
|
||||
final class AttachmentURLGeneratorTest extends WebTestCase
|
||||
{
|
||||
protected const PUBLIC_DIR = '/public';
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use PHPUnit\Framework\Attributes\DataProvider;
|
|||
use App\Services\Attachments\BuiltinAttachmentsFinder;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class BuiltinAttachmentsFinderTest extends WebTestCase
|
||||
final class BuiltinAttachmentsFinderTest extends WebTestCase
|
||||
{
|
||||
protected static array $mock_list = [
|
||||
'%FOOTPRINTS%/test/test.jpg', '%FOOTPRINTS%/test/test.png', '%FOOTPRINTS%/123.jpg', '%FOOTPRINTS%/123.jpeg',
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use PHPUnit\Framework\Attributes\DataProvider;
|
|||
use App\Services\Attachments\FileTypeFilterTools;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class FileTypeFilterToolsTest extends WebTestCase
|
||||
final class FileTypeFilterToolsTest extends WebTestCase
|
||||
{
|
||||
protected static $service;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue