mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Fix duplicate tags creation when assigning search results to tag
Fixes #6330
This commit is contained in:
parent
bfbcee1df5
commit
28db6c22eb
2 changed files with 15 additions and 3 deletions
|
@ -560,5 +560,12 @@ class TagControllerTest extends WallabagCoreTestCase
|
|||
|
||||
$this->assertContains('title', $tags);
|
||||
}
|
||||
|
||||
$tag = $client->getContainer()
|
||||
->get(EntityManagerInterface::class)
|
||||
->getRepository(Tag::class)
|
||||
->findByLabelsAndUser(['title'], $this->getLoggedInUserId());
|
||||
|
||||
$this->assertCount(1, $tag);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue