diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-02-12 15:05:04 +0100 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-02-12 15:05:04 +0100 |
commit | cfc90f8422fc6ff2625bd338afe8fbf18f917e95 (patch) | |
tree | 43408d14364effc92c733d16c567df5ebbd9128b /src/Wallabag/ImportBundle/Tests/Controller | |
parent | 43e4a806bd6714a2b90135e6f5132bc6d11d5194 (diff) | |
parent | fca2b05200f3e681c3ee195b8bb00088a8de0cf8 (diff) | |
download | wallabag-cfc90f8422fc6ff2625bd338afe8fbf18f917e95.tar.gz wallabag-cfc90f8422fc6ff2625bd338afe8fbf18f917e95.tar.zst wallabag-cfc90f8422fc6ff2625bd338afe8fbf18f917e95.zip |
Merge pull request #1658 from wallabag/v2-import-v1-tags
import tags from v1 (#1657)
Diffstat (limited to 'src/Wallabag/ImportBundle/Tests/Controller')
-rw-r--r-- | src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php index e12ea429..819bb0e6 100644 --- a/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php +++ b/src/Wallabag/ImportBundle/Tests/Controller/WallabagV1ControllerTest.php | |||
@@ -39,6 +39,21 @@ class WallabagV1ControllerTest extends WallabagCoreTestCase | |||
39 | 39 | ||
40 | $crawler = $client->followRedirect(); | 40 | $crawler = $client->followRedirect(); |
41 | 41 | ||
42 | $content = $client->getContainer() | ||
43 | ->get('doctrine.orm.entity_manager') | ||
44 | ->getRepository('WallabagCoreBundle:Entry') | ||
45 | ->findByUrlAndUserId( | ||
46 | 'http://www.framablog.org/index.php/post/2014/02/05/Framabag-service-libre-gratuit-interview-developpeur', | ||
47 | $this->getLoggedInUserId() | ||
48 | ); | ||
49 | |||
50 | $tag = $client->getContainer() | ||
51 | ->get('doctrine.orm.entity_manager') | ||
52 | ->getRepository('WallabagCoreBundle:Tag') | ||
53 | ->findOneByLabel('Framabag'); | ||
54 | |||
55 | $this->assertTrue($content->getTags()->contains($tag)); | ||
56 | |||
42 | $this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text'))); | 57 | $this->assertGreaterThan(1, $alert = $crawler->filter('div.messages.success')->extract(array('_text'))); |
43 | $this->assertContains('Import summary', $alert[0]); | 58 | $this->assertContains('Import summary', $alert[0]); |
44 | } | 59 | } |