Fixed phpunit tests

This commit is contained in:
Jan Böhmer 2023-07-17 00:34:00 +02:00
parent d10d29e590
commit afcbbe0f43
5 changed files with 11 additions and 8 deletions

View file

@ -105,11 +105,11 @@ final class PartProvider implements PlaceholderProviderInterface
}
if ('[[M_STATUS]]' === $placeholder) {
if ('' === $part->getManufacturingStatus()) {
if (null === $part->getManufacturingStatus()) {
return '';
}
return $this->translator->trans('m_status.'.$part->getManufacturingStatus());
return $this->translator->trans($part->getManufacturingStatus()->toTranslationKey());
}
$parsedown = new Parsedown();