Moved remaining twig extensions to new attributes system

This commit is contained in:
Jan Böhmer 2026-02-15 00:23:30 +01:00
parent f69b0889eb
commit 1996db6a53
12 changed files with 212 additions and 168 deletions

View file

@ -55,20 +55,20 @@ final class EntityExtensionTest extends WebTestCase
public function testGetEntityType(): void
{
$this->assertSame('part', $this->service->getEntityType(new Part()));
$this->assertSame('footprint', $this->service->getEntityType(new Footprint()));
$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()));
$this->assertSame('attachment', $this->service->getEntityType(new PartAttachment()));
$this->assertSame('supplier', $this->service->getEntityType(new Supplier()));
$this->assertSame('user', $this->service->getEntityType(new User()));
$this->assertSame('group', $this->service->getEntityType(new Group()));
$this->assertSame('currency', $this->service->getEntityType(new Currency()));
$this->assertSame('measurement_unit', $this->service->getEntityType(new MeasurementUnit()));
$this->assertSame('label_profile', $this->service->getEntityType(new LabelProfile()));
$this->assertSame('part_custom_state', $this->service->getEntityType(new PartCustomState()));
$this->assertSame('part', $this->service->entityType(new Part()));
$this->assertSame('footprint', $this->service->entityType(new Footprint()));
$this->assertSame('storelocation', $this->service->entityType(new StorageLocation()));
$this->assertSame('manufacturer', $this->service->entityType(new Manufacturer()));
$this->assertSame('category', $this->service->entityType(new Category()));
$this->assertSame('device', $this->service->entityType(new Project()));
$this->assertSame('attachment', $this->service->entityType(new PartAttachment()));
$this->assertSame('supplier', $this->service->entityType(new Supplier()));
$this->assertSame('user', $this->service->entityType(new User()));
$this->assertSame('group', $this->service->entityType(new Group()));
$this->assertSame('currency', $this->service->entityType(new Currency()));
$this->assertSame('measurement_unit', $this->service->entityType(new MeasurementUnit()));
$this->assertSame('label_profile', $this->service->entityType(new LabelProfile()));
$this->assertSame('part_custom_state', $this->service->entityType(new PartCustomState()));
}
}