+ $this->assertEquals($tag['slug'], $content['slug']);
+
+ $entries = $entry = $this->client->getContainer()
+ ->get('doctrine.orm.entity_manager')
+ ->getRepository('WallabagCoreBundle:Entry')
+ ->findAllByTagId($this->user->getId(), $tag['id']);
+
+ $this->assertCount(0, $entries);
+ }
+
+ public function testGetVersion()
+ {
+ $this->client->request('GET', '/api/version');
+
+ $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
+
+ $content = json_decode($this->client->getResponse()->getContent(), true);
+
+ $this->assertEquals($this->client->getContainer()->getParameter('wallabag_core.version'), $content);