mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 10:24:31 +02:00
Improved organisation of Services
This commit is contained in:
parent
c3308aaf24
commit
a4eae19a1f
56 changed files with 100 additions and 97 deletions
|
@ -22,7 +22,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\Services\Attachments;
|
||||
|
||||
use App\Services\AmountFormatter;
|
||||
use App\Services\Formatters\AmountFormatter;
|
||||
use App\Services\Attachments\AttachmentPathResolver;
|
||||
use const DIRECTORY_SEPARATOR;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
|
|
@ -28,7 +28,7 @@ use App\Entity\Base\AbstractNamedDBElement;
|
|||
use App\Entity\Parts\Category;
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Exceptions\EntityNotSupportedException;
|
||||
use App\Services\AmountFormatter;
|
||||
use App\Services\Formatters\AmountFormatter;
|
||||
use App\Services\ElementTypeNameGenerator;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Services;
|
||||
namespace App\Tests\Services\Formatters;
|
||||
|
||||
use App\Entity\Parts\MeasurementUnit;
|
||||
use App\Services\AmountFormatter;
|
||||
use App\Services\Formatters\AmountFormatter;
|
||||
use InvalidArgumentException;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
|
@ -20,9 +20,9 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Services;
|
||||
namespace App\Tests\Services\Formatters;
|
||||
|
||||
use App\Services\SIFormatter;
|
||||
use App\Services\Formatters\SIFormatter;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class SIFormatterTest extends WebTestCase
|
|
@ -20,11 +20,11 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Services;
|
||||
namespace App\Tests\Services\ImportExportSystem;
|
||||
|
||||
use App\Entity\Attachments\AttachmentType;
|
||||
use App\Services\AmountFormatter;
|
||||
use App\Services\EntityImporter;
|
||||
use App\Services\Formatters\AmountFormatter;
|
||||
use App\Services\ImportExportSystem\EntityImporter;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
/**
|
|
@ -20,9 +20,10 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Services;
|
||||
namespace App\Tests\Services\Misc;
|
||||
|
||||
use App\Services\FAIconGenerator;
|
||||
use App\Services\Misc\FAIconGenerator;
|
||||
use App\Tests\Services\AmountFormatter;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class FAIconGeneratorTest extends WebTestCase
|
|
@ -20,13 +20,13 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Services;
|
||||
namespace App\Tests\Services\Parts;
|
||||
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\PriceInformations\Orderdetail;
|
||||
use App\Entity\PriceInformations\Pricedetail;
|
||||
use App\Services\AmountFormatter;
|
||||
use App\Services\PricedetailHelper;
|
||||
use App\Services\Formatters\AmountFormatter;
|
||||
use App\Services\Parts\PricedetailHelper;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class PricedetailHelperTest extends WebTestCase
|
Loading…
Add table
Add a link
Reference in a new issue