diff --git a/tests/Eccube/Tests/Repository/ProductRepositoryGetQueryBuilderBySearchDataAdminTest.php b/tests/Eccube/Tests/Repository/ProductRepositoryGetQueryBuilderBySearchDataAdminTest.php index f9bede17e0b..62facc49fff 100644 --- a/tests/Eccube/Tests/Repository/ProductRepositoryGetQueryBuilderBySearchDataAdminTest.php +++ b/tests/Eccube/Tests/Repository/ProductRepositoryGetQueryBuilderBySearchDataAdminTest.php @@ -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 で検索