| @@ 113-115 (lines=3) @@ | ||
| 110 | $options = $this->optionsResolver->resolve($options); |
|
| 111 | ||
| 112 | $taxons = []; |
|
| 113 | if (null === $this->taxonRepository->findOneBy(['code' => 'CATEGORY'])) { |
|
| 114 | $taxons[] = ['name' => 'Category', 'code' => 'CATEGORY', 'parent' => null]; |
|
| 115 | } |
|
| 116 | ||
| 117 | if (null === $this->taxonRepository->findOneBy(['code' => 'BRAND'])) { |
|
| 118 | $taxons[] = ['name' => 'Brand', 'code' => 'BRAND', 'parent' => null]; |
|
| @@ 117-119 (lines=3) @@ | ||
| 114 | $taxons[] = ['name' => 'Category', 'code' => 'CATEGORY', 'parent' => null]; |
|
| 115 | } |
|
| 116 | ||
| 117 | if (null === $this->taxonRepository->findOneBy(['code' => 'BRAND'])) { |
|
| 118 | $taxons[] = ['name' => 'Brand', 'code' => 'BRAND', 'parent' => null]; |
|
| 119 | } |
|
| 120 | ||
| 121 | $this->taxonFixture->load(['custom' => array_merge($taxons, [ |
|
| 122 | ['name' => 'Books', 'code' => 'BOOKS', 'parent' => 'CATEGORY'], |
|
| @@ 112-114 (lines=3) @@ | ||
| 109 | $options = $this->optionsResolver->resolve($options); |
|
| 110 | ||
| 111 | $taxons = []; |
|
| 112 | if (null === $this->taxonRepository->findOneBy(['code' => 'CATEGORY'])) { |
|
| 113 | $taxons[] = ['name' => 'Category', 'code' => 'CATEGORY', 'parent' => null]; |
|
| 114 | } |
|
| 115 | ||
| 116 | if (null === $this->taxonRepository->findOneBy(['code' => 'BRAND'])) { |
|
| 117 | $taxons[] = ['name' => 'Brand', 'code' => 'BRAND', 'parent' => null]; |
|
| @@ 116-118 (lines=3) @@ | ||
| 113 | $taxons[] = ['name' => 'Category', 'code' => 'CATEGORY', 'parent' => null]; |
|
| 114 | } |
|
| 115 | ||
| 116 | if (null === $this->taxonRepository->findOneBy(['code' => 'BRAND'])) { |
|
| 117 | $taxons[] = ['name' => 'Brand', 'code' => 'BRAND', 'parent' => null]; |
|
| 118 | } |
|
| 119 | ||
| 120 | $this->taxonFixture->load(['custom' => array_merge($taxons, [ |
|
| 121 | ['name' => 'Mugs', 'code' => 'MUGS', 'parent' => 'CATEGORY'], |
|
| @@ 112-114 (lines=3) @@ | ||
| 109 | $options = $this->optionsResolver->resolve($options); |
|
| 110 | ||
| 111 | $taxons = []; |
|
| 112 | if (null === $this->taxonRepository->findOneBy(['code' => 'CATEGORY'])) { |
|
| 113 | $taxons[] = ['name' => 'Category', 'code' => 'CATEGORY', 'parent' => null]; |
|
| 114 | } |
|
| 115 | ||
| 116 | if (null === $this->taxonRepository->findOneBy(['code' => 'BRAND'])) { |
|
| 117 | $taxons[] = ['name' => 'Brand', 'code' => 'BRAND', 'parent' => null]; |
|
| @@ 116-118 (lines=3) @@ | ||
| 113 | $taxons[] = ['name' => 'Category', 'code' => 'CATEGORY', 'parent' => null]; |
|
| 114 | } |
|
| 115 | ||
| 116 | if (null === $this->taxonRepository->findOneBy(['code' => 'BRAND'])) { |
|
| 117 | $taxons[] = ['name' => 'Brand', 'code' => 'BRAND', 'parent' => null]; |
|
| 118 | } |
|
| 119 | ||
| 120 | $this->taxonFixture->load(['custom' => array_merge($taxons, [ |
|
| 121 | ['name' => 'Stickers', 'code' => 'STICKERS', 'parent' => 'CATEGORY'], |
|
| @@ 112-114 (lines=3) @@ | ||
| 109 | $options = $this->optionsResolver->resolve($options); |
|
| 110 | ||
| 111 | $taxons = []; |
|
| 112 | if (null === $this->taxonRepository->findOneBy(['code' => 'CATEGORY'])) { |
|
| 113 | $taxons[] = ['name' => 'Category', 'code' => 'CATEGORY', 'parent' => null]; |
|
| 114 | } |
|
| 115 | ||
| 116 | if (null === $this->taxonRepository->findOneBy(['code' => 'BRAND'])) { |
|
| 117 | $taxons[] = ['name' => 'Brand', 'code' => 'BRAND', 'parent' => null]; |
|
| @@ 116-118 (lines=3) @@ | ||
| 113 | $taxons[] = ['name' => 'Category', 'code' => 'CATEGORY', 'parent' => null]; |
|
| 114 | } |
|
| 115 | ||
| 116 | if (null === $this->taxonRepository->findOneBy(['code' => 'BRAND'])) { |
|
| 117 | $taxons[] = ['name' => 'Brand', 'code' => 'BRAND', 'parent' => null]; |
|
| 118 | } |
|
| 119 | ||
| 120 | $this->taxonFixture->load(['custom' => array_merge($taxons, [ |
|
| 121 | ['name' => 'T-Shirts', 'code' => 'TSHIRTS', 'parent' => 'CATEGORY'], |
|