mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-02 01:04:41 +02:00
Renamed Storelocation entity to StorageLocation
This commit is contained in:
parent
09acca950d
commit
0af5a58dbe
59 changed files with 218 additions and 176 deletions
|
@ -22,7 +22,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\Controller\AdminPages;
|
||||
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\StorageLocation;
|
||||
|
||||
/**
|
||||
* @group slow
|
||||
|
@ -31,5 +31,5 @@ use App\Entity\Parts\Storelocation;
|
|||
class StorelocationControllerTest extends AbstractAdminControllerTest
|
||||
{
|
||||
protected static string $base_path = '/en/store_location';
|
||||
protected static string $entity_class = Storelocation::class;
|
||||
protected static string $entity_class = StorageLocation::class;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ use App\Entity\Attachments\GroupAttachment;
|
|||
use App\Entity\Attachments\ManufacturerAttachment;
|
||||
use App\Entity\Attachments\MeasurementUnitAttachment;
|
||||
use App\Entity\Attachments\PartAttachment;
|
||||
use App\Entity\Attachments\StorelocationAttachment;
|
||||
use App\Entity\Attachments\StorageLocationAttachment;
|
||||
use App\Entity\Attachments\SupplierAttachment;
|
||||
use App\Entity\Attachments\UserAttachment;
|
||||
use App\Entity\ProjectSystem\Project;
|
||||
|
@ -42,7 +42,7 @@ use App\Entity\Parts\Footprint;
|
|||
use App\Entity\Parts\Manufacturer;
|
||||
use App\Entity\Parts\MeasurementUnit;
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\StorageLocation;
|
||||
use App\Entity\Parts\Supplier;
|
||||
use App\Entity\PriceInformations\Currency;
|
||||
use App\Entity\UserSystem\Group;
|
||||
|
@ -84,7 +84,7 @@ class AttachmentTest extends TestCase
|
|||
[ManufacturerAttachment::class, Manufacturer::class],
|
||||
[MeasurementUnitAttachment::class, MeasurementUnit::class],
|
||||
[PartAttachment::class, Part::class],
|
||||
[StorelocationAttachment::class, Storelocation::class],
|
||||
[StorageLocationAttachment::class, StorageLocation::class],
|
||||
[SupplierAttachment::class, Supplier::class],
|
||||
[UserAttachment::class, User::class],
|
||||
];
|
||||
|
|
|
@ -52,7 +52,7 @@ use App\Entity\Parts\Category;
|
|||
use App\Entity\Parts\Footprint;
|
||||
use App\Entity\Parts\Manufacturer;
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\StorageLocation;
|
||||
use App\Entity\Parts\Supplier;
|
||||
use App\Entity\UserSystem\Group;
|
||||
use App\Entity\UserSystem\User;
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace App\Tests\Services\LabelSystem\Barcodes;
|
|||
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\Parts\PartLot;
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\StorageLocation;
|
||||
use App\Services\LabelSystem\Barcodes\BarcodeContentGenerator;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
|
||||
|
@ -62,7 +62,7 @@ class BarcodeContentGeneratorTest extends KernelTestCase
|
|||
return [
|
||||
['P0000', Part::class],
|
||||
['L0000', PartLot::class],
|
||||
['S0000', Storelocation::class],
|
||||
['S0000', StorageLocation::class],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ class BarcodeContentGeneratorTest extends KernelTestCase
|
|||
return [
|
||||
['/scan/part/0', Part::class],
|
||||
['/scan/lot/0', PartLot::class],
|
||||
['/scan/location/0', Storelocation::class],
|
||||
['/scan/location/0', StorageLocation::class],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ use App\Entity\LabelSystem\LabelOptions;
|
|||
use App\Entity\LabelSystem\LabelSupportedElement;
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\Parts\PartLot;
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\StorageLocation;
|
||||
use App\Services\LabelSystem\LabelGenerator;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
|
@ -68,7 +68,7 @@ class LabelGeneratorTest extends WebTestCase
|
|||
return [
|
||||
[LabelSupportedElement::PART, Part::class],
|
||||
[LabelSupportedElement::PART_LOT, PartLot::class],
|
||||
[LabelSupportedElement::STORELOCATION, Storelocation::class],
|
||||
[LabelSupportedElement::STORELOCATION, StorageLocation::class],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace App\Tests\Services\LabelSystem\PlaceholderProviders;
|
|||
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\Parts\PartLot;
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\StorageLocation;
|
||||
use App\Entity\UserSystem\User;
|
||||
use App\Services\LabelSystem\PlaceholderProviders\PartLotProvider;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
@ -68,9 +68,9 @@ class PartLotProviderTest extends WebTestCase
|
|||
$this->target->setExpirationDate(new \DateTime('1999-04-13'));
|
||||
$this->target->setInstockUnknown(true);
|
||||
|
||||
$location = new Storelocation();
|
||||
$location = new StorageLocation();
|
||||
$location->setName('Location');
|
||||
$location->setParent((new Storelocation())->setName('Parent'));
|
||||
$location->setParent((new StorageLocation())->setName('Parent'));
|
||||
$this->target->setStorageLocation($location);
|
||||
|
||||
$part = new Part();
|
||||
|
|
|
@ -46,7 +46,7 @@ use App\Entity\LabelSystem\LabelProcessMode;
|
|||
use App\Entity\LabelSystem\LabelSupportedElement;
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\Parts\PartLot;
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\StorageLocation;
|
||||
use App\Services\LabelSystem\SandboxedTwigProvider;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use Twig\Sandbox\SecurityError;
|
||||
|
@ -114,7 +114,7 @@ class SandboxedTwigProviderTest extends WebTestCase
|
|||
$str = $twig->render('lines', [
|
||||
'part' => new Part(),
|
||||
'lot' => new PartLot(),
|
||||
'location' => new Storelocation(),
|
||||
'location' => new StorageLocation(),
|
||||
]);
|
||||
|
||||
$this->assertIsString($str);
|
||||
|
@ -136,7 +136,7 @@ class SandboxedTwigProviderTest extends WebTestCase
|
|||
$str = $twig->render('lines', [
|
||||
'part' => new Part(),
|
||||
'lot' => new PartLot(),
|
||||
'location' => new Storelocation(),
|
||||
'location' => new StorageLocation(),
|
||||
]);
|
||||
|
||||
$this->assertIsString($str);
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace App\Tests\Services\Parts;
|
|||
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\Parts\PartLot;
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\StorageLocation;
|
||||
use App\Services\Parts\PartLotWithdrawAddHelper;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
|
@ -29,10 +29,10 @@ class PartLotWithdrawAddHelperTest extends WebTestCase
|
|||
/** @var Part */
|
||||
private Part $part;
|
||||
|
||||
/** @var Storelocation */
|
||||
private Storelocation $storageLocation;
|
||||
/** @var Storelocation */
|
||||
private Storelocation $full_storageLocation;
|
||||
/** @var StorageLocation */
|
||||
private StorageLocation $storageLocation;
|
||||
/** @var StorageLocation */
|
||||
private StorageLocation $full_storageLocation;
|
||||
|
||||
/** @var PartLot */
|
||||
private PartLot $partLot1;
|
||||
|
@ -59,8 +59,8 @@ class PartLotWithdrawAddHelperTest extends WebTestCase
|
|||
{
|
||||
$this->part = new Part();
|
||||
|
||||
$this->storageLocation = new Storelocation();
|
||||
$this->full_storageLocation = new Storelocation();
|
||||
$this->storageLocation = new StorageLocation();
|
||||
$this->full_storageLocation = new StorageLocation();
|
||||
$this->full_storageLocation->setIsFull(true);
|
||||
|
||||
$this->partLot1 = new TestPartLot();
|
||||
|
|
|
@ -30,7 +30,7 @@ use App\Entity\Parts\Footprint;
|
|||
use App\Entity\Parts\Manufacturer;
|
||||
use App\Entity\Parts\MeasurementUnit;
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\StorageLocation;
|
||||
use App\Entity\Parts\Supplier;
|
||||
use App\Entity\PriceInformations\Currency;
|
||||
use App\Entity\UserSystem\Group;
|
||||
|
@ -56,7 +56,7 @@ class EntityExtensionTest extends WebTestCase
|
|||
{
|
||||
$this->assertSame('part', $this->service->getEntityType(new Part()));
|
||||
$this->assertSame('footprint', $this->service->getEntityType(new Footprint()));
|
||||
$this->assertSame('storelocation', $this->service->getEntityType(new Storelocation()));
|
||||
$this->assertSame('storelocation', $this->service->getEntityType(new StorageLocation()));
|
||||
$this->assertSame('manufacturer', $this->service->getEntityType(new Manufacturer()));
|
||||
$this->assertSame('category', $this->service->getEntityType(new Category()));
|
||||
$this->assertSame('device', $this->service->getEntityType(new Project()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue