Skip to content

Commit

Permalink
error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Redjik committed Sep 23, 2015
1 parent 643b0fa commit 71c7111
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/tests/integration/ArticleTest.php
Expand Up @@ -75,9 +75,9 @@ protected function cleanupDiscussions(array $articles)

public function testGetAllPaginated()
{
$entities = $this->getFactory()->get(Article::class)->count(5)->create()->all();
$entities = $this->getFactory()->get(Article::class)->count(5)->create();

$entity = current($entities);
$entity = $entities->first();
$entity->excerpt = null;
$this->addPermalinksToArticles($entities);

Expand All @@ -90,7 +90,7 @@ public function testGetAllPaginated()
$this->assertNotNull($object[0]->excerpt);
$this->assertObjectNotHasAttribute('content', $object[0]);

$this->cleanupDiscussions($entities);
$this->cleanupDiscussions($entities->all());
}

public function testGetOne()
Expand Down

0 comments on commit 71c7111

Please sign in to comment.