Skip to content

Commit

Permalink
Merge branch 'fix/taxonBuilderSpec' into fix/JJ-98
Browse files Browse the repository at this point in the history
  • Loading branch information
leszczuu committed Nov 19, 2020
2 parents 63fa638 + 4c40c23 commit ae4b788
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion spec/PropertyBuilder/OptionTaxonsBuilderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function let(
$productOptionValueRepository,
$productVariantRepository,
$productTaxonsMapper,
'option',
'taxons'
);
}
Expand Down
10 changes: 5 additions & 5 deletions tests/Behat/Service/Populate.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use FOS\ElasticaBundle\Persister\PagerPersisterInterface;
use FOS\ElasticaBundle\Persister\PagerPersisterRegistry;
use FOS\ElasticaBundle\Provider\PagerProviderRegistry;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;

final class Populate
{
Expand Down Expand Up @@ -75,7 +75,7 @@ public function populateIndex(): void

foreach ($indexes as $index) {
$event = new IndexPopulateEvent($index, true, $options);
$this->dispatcher->dispatch(IndexPopulateEvent::PRE_INDEX_POPULATE, $event);
$this->dispatcher->dispatch($event, IndexPopulateEvent::PRE_INDEX_POPULATE);

if ($event->isReset()) {
$this->resetter->resetIndex($index, true);
Expand All @@ -86,7 +86,7 @@ public function populateIndex(): void
$this->populateIndexType($index, $type, false, $event->getOptions());
}

$this->dispatcher->dispatch(IndexPopulateEvent::POST_INDEX_POPULATE, $event);
$this->dispatcher->dispatch($event, IndexPopulateEvent::POST_INDEX_POPULATE);

$this->refreshIndex($index);
}
Expand All @@ -101,7 +101,7 @@ public function populateIndex(): void
private function populateIndexType(string $index, string $type, bool $reset, array $options): void
{
$event = new TypePopulateEvent($index, $type, $reset, $options);
$this->dispatcher->dispatch(TypePopulateEvent::PRE_TYPE_POPULATE, $event);
$this->dispatcher->dispatch($event, TypePopulateEvent::PRE_TYPE_POPULATE);

if ($event->isReset()) {
$this->resetter->resetIndexType($index, $type);
Expand All @@ -116,7 +116,7 @@ private function populateIndexType(string $index, string $type, bool $reset, arr

$this->pagerPersister->insert($pager, $options);

$this->dispatcher->dispatch(TypePopulateEvent::POST_TYPE_POPULATE, $event);
$this->dispatcher->dispatch($event, TypePopulateEvent::POST_TYPE_POPULATE);

$this->refreshIndex($index);
}
Expand Down

0 comments on commit ae4b788

Please sign in to comment.