class TagControllerTest extends WallabagCoreTestCase
{
public $tagName = 'opensource';
+ public $caseTagName = 'OpenSource';
public function testList()
{
$form = $crawler->filter('form[name=tag]')->form();
$data = [
- 'tag[label]' => $this->tagName,
+ 'tag[label]' => $this->caseTagName,
];
$client->submit($form, $data);
// be sure to reload the entry
$entry = $this->getEntityManager()->getRepository(Entry::class)->find($entry->getId());
$this->assertCount(1, $entry->getTags());
+ $this->assertContains($this->tagName, $entry->getTags());
// tag already exists and already assigned
$client->submit($form, $data);
$form = $crawler->filter('form[name=tag]')->form();
$data = [
- 'tag[label]' => 'foo2, bar2',
+ 'tag[label]' => 'foo2, Bar2',
];
$client->submit($form, $data);
$tags = $content->getTags();
$this->assertContains('foot', $tags, 'It includes the "foot" tag');
- $this->assertContains('Framabag', $tags, 'It includes the "Framabag" tag');
+ $this->assertContains('framabag', $tags, 'It includes the "framabag" tag');
$this->assertSame(2, count($tags));
$this->assertInstanceOf(\DateTime::class, $content->getCreatedAt());