X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FCoreBundle%2FTests%2FHelper%2FRuleBasedTaggerTest.php;h=dee17d6575fe179b05b84d9fa41787bd227e91f1;hb=516022d60ea5c4e0c18a222590d23190a2c7765f;hp=cddc8b086276a95f8cba4bb31cf444c345248f17;hpb=fc73222723c7a0c9b577805d3ef51eb96b124b92;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php b/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php index cddc8b08..dee17d65 100644 --- a/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php @@ -98,7 +98,6 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase $user = $this->getUser([$taggingRule]); $entry = new Entry($user); $tag = new Tag(); - $tag->setLabel('foo'); $this->rulerz ->expects($this->once()) @@ -118,7 +117,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase $this->assertFalse($entry->getTags()->isEmpty()); $tags = $entry->getTags(); - $this->assertSame($tag->getLabel(), $tags[0]->getLabel()); + $this->assertSame($tag, $tags[0]); } public function testSameTagWithDifferentfMatchingRules()