mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-28 14:54:44 +02:00
Use imports instead of FQNs
This commit is contained in:
parent
f63b6d7207
commit
5629215ce4
179 changed files with 792 additions and 597 deletions
|
@ -22,6 +22,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||
use App\Entity\UserSystem\User;
|
||||
use App\Repository\UserRepository;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
@ -35,7 +36,7 @@ class RedirectControllerTest extends WebTestCase
|
|||
{
|
||||
protected EntityManagerInterface $em;
|
||||
protected UserRepository $userRepo;
|
||||
protected \Symfony\Bundle\FrameworkBundle\KernelBrowser $client;
|
||||
protected KernelBrowser $client;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
|
|
@ -43,8 +43,8 @@ class ProjectBuildRequestTest extends TestCase
|
|||
/** @var ProjectBOMEntry */
|
||||
private ProjectBOMEntry $bom_entry1c;
|
||||
|
||||
private \App\Entity\Parts\PartLot $lot1a;
|
||||
private \App\Entity\Parts\PartLot $lot1b;
|
||||
private PartLot $lot1a;
|
||||
private PartLot $lot1b;
|
||||
private PartLot $lot2;
|
||||
|
||||
/** @var Part */
|
||||
|
|
|
@ -41,6 +41,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\Services\LabelSystem\PlaceholderProviders;
|
||||
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use App\Entity\Parts\Category;
|
||||
use App\Entity\Parts\Footprint;
|
||||
use App\Entity\Parts\Part;
|
||||
|
@ -61,7 +62,7 @@ class PartProviderTest extends WebTestCase
|
|||
protected Part $target;
|
||||
|
||||
/**
|
||||
* @var \Doctrine\ORM\EntityManager
|
||||
* @var EntityManager
|
||||
*/
|
||||
protected $em;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue