Skip to content

Commit

Permalink
テストコードの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
h.matsuo committed Nov 26, 2021
1 parent 9db51c2 commit c9a156f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ public function testTagSearch()
// * 商品1 に タグ 1 を設定
// * 商品2 に タグ 1, 2 を設定
$Products = $this->productRepository->findAll();
$Products[0]->setName('りんご');
$this->setProductTags($Products[0], [1]);
$this->setProductTags($Products[1], [1, 2]);
$Products[1]->setName('りんご');
$this->setProductTags($Products[1], [1]);
$this->setProductTags($Products[2], [1, 2]);
$this->entityManager->flush();

// タグ 1 で検索
Expand Down

0 comments on commit c9a156f

Please sign in to comment.