public function testTagWithNoMatchingRule()
{
- $taggingRule = $this->getTaggingRule('rule as string', array('foo', 'bar'));
+ $taggingRule = $this->getTaggingRule('rule as string', ['foo', 'bar']);
$user = $this->getUser([$taggingRule]);
$entry = new Entry($user);
public function testTagWithAMatchingRule()
{
- $taggingRule = $this->getTaggingRule('rule as string', array('foo', 'bar'));
+ $taggingRule = $this->getTaggingRule('rule as string', ['foo', 'bar']);
$user = $this->getUser([$taggingRule]);
$entry = new Entry($user);
public function testTagWithAMixOfMatchingRules()
{
- $taggingRule = $this->getTaggingRule('bla bla', array('hey'));
- $otherTaggingRule = $this->getTaggingRule('rule as string', array('foo'));
+ $taggingRule = $this->getTaggingRule('bla bla', ['hey']);
+ $otherTaggingRule = $this->getTaggingRule('rule as string', ['foo']);
$user = $this->getUser([$taggingRule, $otherTaggingRule]);
$entry = new Entry($user);
public function testWhenTheTagExists()
{
- $taggingRule = $this->getTaggingRule('rule as string', array('foo'));
+ $taggingRule = $this->getTaggingRule('rule as string', ['foo']);
$user = $this->getUser([$taggingRule]);
$entry = new Entry($user);
$tag = new Tag();
public function testSameTagWithDifferentfMatchingRules()
{
- $taggingRule = $this->getTaggingRule('bla bla', array('hey'));
- $otherTaggingRule = $this->getTaggingRule('rule as string', array('hey'));
+ $taggingRule = $this->getTaggingRule('bla bla', ['hey']);
+ $otherTaggingRule = $this->getTaggingRule('rule as string', ['hey']);
$user = $this->getUser([$taggingRule, $otherTaggingRule]);
$entry = new Entry($user);
public function testTagAllEntriesForAUser()
{
- $taggingRule = $this->getTaggingRule('bla bla', array('hey'));
+ $taggingRule = $this->getTaggingRule('bla bla', ['hey']);
$user = $this->getUser([$taggingRule]);
$this->rulerz
->method('filter')
- ->willReturn(array(new Entry($user), new Entry($user)));
+ ->willReturn([new Entry($user), new Entry($user)]);
$entries = $this->tagger->tagAllForUser($user);