aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Tests/Controller
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2015-12-29 15:08:33 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2015-12-29 15:43:32 +0100
commit4059a061c0c8cc787f71e96aef2ab01599d3241d (patch)
tree44265f4985fe9ecf9b601d3414971a62bbc8034d /src/Wallabag/ApiBundle/Tests/Controller
parent1bb1939ab76cfbf1cdb5fa1dccbdd15ba17cdfb0 (diff)
downloadwallabag-4059a061c0c8cc787f71e96aef2ab01599d3241d.tar.gz
wallabag-4059a061c0c8cc787f71e96aef2ab01599d3241d.tar.zst
wallabag-4059a061c0c8cc787f71e96aef2ab01599d3241d.zip
Fix the way to remove a tag from all user entries
Diffstat (limited to 'src/Wallabag/ApiBundle/Tests/Controller')
-rw-r--r--src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
index a7120e83..22894a77 100644
--- a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
+++ b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
@@ -310,5 +310,12 @@ class WallabagRestControllerTest extends WallabagApiTestCase
310 $this->assertArrayHasKey('label', $content); 310 $this->assertArrayHasKey('label', $content);
311 $this->assertEquals($tag['label'], $content['label']); 311 $this->assertEquals($tag['label'], $content['label']);
312 $this->assertEquals($tag['slug'], $content['slug']); 312 $this->assertEquals($tag['slug'], $content['slug']);
313
314 $entries = $entry = $this->client->getContainer()
315 ->get('doctrine.orm.entity_manager')
316 ->getRepository('WallabagCoreBundle:Entry')
317 ->findAllByTagId($this->user->getId(), $tag['id']);
318
319 $this->assertCount(0, $entries);
313 } 320 }
314} 321}