$this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
$this->assertContains('flashes.import.notice.summary', $body[0]);
- $this->assertNotEmpty($content->getMimetype());
- $this->assertNotEmpty($content->getPreviewPicture());
- $this->assertNotEmpty($content->getLanguage());
- $this->assertEquals(0, count($content->getTags()));
+ $this->assertNotEmpty($content->getMimetype(), 'Mimetype for https://ma.ttias.be is ok');
+ $this->assertNotEmpty($content->getPreviewPicture(), 'Preview picture for https://ma.ttias.be is ok');
+ $this->assertNotEmpty($content->getLanguage(), 'Language for https://ma.ttias.be is ok');
+
+ $tags = $content->getTags();
+ $this->assertContains('foot', $tags, 'It includes the "foot" tag');
+ $this->assertContains('varnish', $tags, 'It includes the "varnish" tag');
+ $this->assertContains('PHP', $tags, 'It includes the "PHP" tag');
+ $this->assertEquals(3, count($tags));
+
$this->assertInstanceOf(\DateTime::class, $content->getCreatedAt());
$this->assertEquals('2016-10-26', $content->getCreatedAt()->format('Y-m-d'));
}