Skip to content

Commit

Permalink
returned skipped tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Redjik committed Aug 28, 2015
1 parent 86f31cc commit 4f904e5
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions api/tests/integration/ArticleImageTest.php
Expand Up @@ -119,16 +119,16 @@ public function testPutManyNewInvalid()

public function testDeleteMany()
{
$this->markTestSkipped();
/** @var Article $article */
$article = factory(Article::class)->create();
$this->addImagesToArticle($article);

$childCount = Article::find($article->article_id)->articleImages->count();
$article = $this->getFactory()->get(Article::class)->create();
$images = $this->addImagesToArticle($article);

$images = $this->getFactory()
->get($images)
->count(5)
->transformed();

$images = array_map(function ($entity) {
return $this->prepareEntity($entity);
}, $article->articleImages->all());
$childCount = Article::find($article->article_id)->articleImages->count();

$this->deleteJson('/articles/'.$article->article_id.'/article-images', $images);

Expand All @@ -140,8 +140,7 @@ public function testDeleteMany()

public function testGetManyImages()
{
$this->markTestSkipped();
$article = factory(Article::class)->create();
$article = $this->getFactory()->get(Article::class)->create();
$this->addImagesToArticle($article);

$this->getJson('/articles/'.$article->article_id, ['With-Nested' => 'images']);
Expand Down

0 comments on commit 4f904e5

Please sign in to comment.