Add tests

This commit is contained in:
Nicolas Lœuillet
2025-06-12 21:08:04 +02:00
committed by Luc Didry
parent 0d1748c8a8
commit 049d87e180
2 changed files with 100 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class UrlCommand extends Command
$this->entityManager->persist($entry);
$tags = explode(',', $input->getArgument('tags'));
if (count($tags) > 0) {
if (\count($tags) > 1) {
$this->tagsAssigner->assignTagsToEntry(
$entry,
$tags,