forked from wallabag/wallabag
Fix duplicate tags creation when assigning search results to tag
Fixes #6330
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user