->findOneByUrl($url);
$tags = $entry->getTags();
- $this->assertCount(1, $tags);
+ $this->assertCount(2, $tags);
$this->assertEquals('wallabag', $tags[0]->getLabel());
$em->remove($entry);
$tags = $entry->getTags();
- $this->assertCount(1, $tags);
- $this->assertEquals('wallabag', $tags[0]->getLabel());
+ $this->assertCount(2, $tags);
+ $this->assertEquals('wallabag', $tags[1]->getLabel());
$em->remove($entry);
$em->flush();