diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php b/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php index c43c62c3..e9025b45 100644 --- a/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Helper/RuleBasedTaggerTest.php | |||
@@ -36,7 +36,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase | |||
36 | 36 | ||
37 | public function testTagWithNoMatchingRule() | 37 | public function testTagWithNoMatchingRule() |
38 | { | 38 | { |
39 | $taggingRule = $this->getTaggingRule('rule as string', array('foo', 'bar')); | 39 | $taggingRule = $this->getTaggingRule('rule as string', ['foo', 'bar']); |
40 | $user = $this->getUser([$taggingRule]); | 40 | $user = $this->getUser([$taggingRule]); |
41 | $entry = new Entry($user); | 41 | $entry = new Entry($user); |
42 | 42 | ||
@@ -53,7 +53,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase | |||
53 | 53 | ||
54 | public function testTagWithAMatchingRule() | 54 | public function testTagWithAMatchingRule() |
55 | { | 55 | { |
56 | $taggingRule = $this->getTaggingRule('rule as string', array('foo', 'bar')); | 56 | $taggingRule = $this->getTaggingRule('rule as string', ['foo', 'bar']); |
57 | $user = $this->getUser([$taggingRule]); | 57 | $user = $this->getUser([$taggingRule]); |
58 | $entry = new Entry($user); | 58 | $entry = new Entry($user); |
59 | 59 | ||
@@ -74,8 +74,8 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase | |||
74 | 74 | ||
75 | public function testTagWithAMixOfMatchingRules() | 75 | public function testTagWithAMixOfMatchingRules() |
76 | { | 76 | { |
77 | $taggingRule = $this->getTaggingRule('bla bla', array('hey')); | 77 | $taggingRule = $this->getTaggingRule('bla bla', ['hey']); |
78 | $otherTaggingRule = $this->getTaggingRule('rule as string', array('foo')); | 78 | $otherTaggingRule = $this->getTaggingRule('rule as string', ['foo']); |
79 | 79 | ||
80 | $user = $this->getUser([$taggingRule, $otherTaggingRule]); | 80 | $user = $this->getUser([$taggingRule, $otherTaggingRule]); |
81 | $entry = new Entry($user); | 81 | $entry = new Entry($user); |
@@ -94,7 +94,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase | |||
94 | 94 | ||
95 | public function testWhenTheTagExists() | 95 | public function testWhenTheTagExists() |
96 | { | 96 | { |
97 | $taggingRule = $this->getTaggingRule('rule as string', array('foo')); | 97 | $taggingRule = $this->getTaggingRule('rule as string', ['foo']); |
98 | $user = $this->getUser([$taggingRule]); | 98 | $user = $this->getUser([$taggingRule]); |
99 | $entry = new Entry($user); | 99 | $entry = new Entry($user); |
100 | $tag = new Tag(); | 100 | $tag = new Tag(); |
@@ -122,8 +122,8 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase | |||
122 | 122 | ||
123 | public function testSameTagWithDifferentfMatchingRules() | 123 | public function testSameTagWithDifferentfMatchingRules() |
124 | { | 124 | { |
125 | $taggingRule = $this->getTaggingRule('bla bla', array('hey')); | 125 | $taggingRule = $this->getTaggingRule('bla bla', ['hey']); |
126 | $otherTaggingRule = $this->getTaggingRule('rule as string', array('hey')); | 126 | $otherTaggingRule = $this->getTaggingRule('rule as string', ['hey']); |
127 | 127 | ||
128 | $user = $this->getUser([$taggingRule, $otherTaggingRule]); | 128 | $user = $this->getUser([$taggingRule, $otherTaggingRule]); |
129 | $entry = new Entry($user); | 129 | $entry = new Entry($user); |
@@ -142,7 +142,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase | |||
142 | 142 | ||
143 | public function testTagAllEntriesForAUser() | 143 | public function testTagAllEntriesForAUser() |
144 | { | 144 | { |
145 | $taggingRule = $this->getTaggingRule('bla bla', array('hey')); | 145 | $taggingRule = $this->getTaggingRule('bla bla', ['hey']); |
146 | 146 | ||
147 | $user = $this->getUser([$taggingRule]); | 147 | $user = $this->getUser([$taggingRule]); |
148 | 148 | ||
@@ -152,7 +152,7 @@ class RuleBasedTaggerTest extends \PHPUnit_Framework_TestCase | |||
152 | 152 | ||
153 | $this->rulerz | 153 | $this->rulerz |
154 | ->method('filter') | 154 | ->method('filter') |
155 | ->willReturn(array(new Entry($user), new Entry($user))); | 155 | ->willReturn([new Entry($user), new Entry($user)]); |
156 | 156 | ||
157 | $entries = $this->tagger->tagAllForUser($user); | 157 | $entries = $this->tagger->tagAllForUser($user); |
158 | 158 | ||