Renamed Storelocation entity to StorageLocation

This commit is contained in:
Jan Böhmer 2023-09-04 22:57:40 +02:00
parent 09acca950d
commit 0af5a58dbe
59 changed files with 218 additions and 176 deletions

View file

@ -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],
];
}

View file

@ -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],
];
}

View file

@ -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();

View file

@ -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);