Skip to content

Commit

Permalink
style patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Redjik committed Sep 4, 2015
1 parent f823e81 commit bdc0aee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/tests/integration/ArticleTagTest.php
Expand Up @@ -45,7 +45,7 @@ protected function addTagsToArticles($articles, $same = false)
}
/** @var Article[] $articles */
foreach ($articles as $article) {
if (!$same) {
if (! $same) {
/** @var Collection $tags */
$tags = $this->getFactory()->get(\App\Models\Tag::class)->count(4)->create();
}
Expand Down Expand Up @@ -127,7 +127,7 @@ public function testGetOneWithArticles()
$this->assertEquals(4, $entity->tags->count());
$tag = $entity->tags->first();

$this->getJson('/tags/'.$tag->tag_id, ['with-nested'=>'articles']);
$this->getJson('/tags/'.$tag->tag_id, ['with-nested' => 'articles']);
$object = json_decode($this->response->getContent());
$this->assertEquals(5, count($object->_articles));
}
Expand Down Expand Up @@ -185,7 +185,7 @@ public function testPostTagGlobal()
public function testPostTagInvalid()
{
$tag = $this->getFactory()->get(Tag::class)
->customize(['tag'=>'%$@""'])
->customize(['tag' => '%$@""'])
->transformed();

$this->post('/tags', $tag);
Expand Down

0 comments on commit bdc0aee

Please sign in to comment.