File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ public function testMultiStoreCategoryIndices()
82
82
$ this ->assertEquals (self ::BAGS_CATEGORY_NAME_ALT , $ bagsCategoryAlt ->getName ());
83
83
84
84
$ this ->categoriesIndexer ->execute ([self ::BAGS_CATEGORY_ID ]);
85
- $ this ->algoliaHelper ->waitLastTask ();
85
+
86
+ $ this ->algoliaHelper ->waitLastTask ($ defaultStore ->getId ());
87
+ $ this ->algoliaHelper ->waitLastTask ($ fixtureSecondStore ->getId ());
86
88
87
89
$ this ->assertAlgoliaRecordValues (
88
90
$ this ->indexPrefix . 'default_categories ' ,
@@ -106,7 +108,9 @@ public function testMultiStoreCategoryIndices()
106
108
);
107
109
108
110
$ this ->categoriesIndexer ->execute ([self ::BAGS_CATEGORY_ID ]);
109
- $ this ->algoliaHelper ->waitLastTask ();
111
+
112
+ $ this ->algoliaHelper ->waitLastTask ($ defaultStore ->getId ());
113
+ $ this ->algoliaHelper ->waitLastTask ($ fixtureSecondStore ->getId ());
110
114
111
115
$ this ->assertNbOfRecordsPerStore (
112
116
$ defaultStore ->getCode (),
Original file line number Diff line number Diff line change @@ -103,7 +103,10 @@ public function testMultiStoreProductIndices()
103
103
$ this ->assertEquals (self ::VOYAGE_YOGA_BAG_NAME_ALT , $ voyageYogaBagAlt ->getName ());
104
104
105
105
$ this ->productsIndexer ->execute ([self ::VOYAGE_YOGA_BAG_ID ]);
106
- $ this ->algoliaHelper ->waitLastTask ();
106
+
107
+ $ this ->algoliaHelper ->waitLastTask ($ defaultStore ->getId ());
108
+ $ this ->algoliaHelper ->waitLastTask ($ fixtureSecondStore ->getId ());
109
+ $ this ->algoliaHelper ->waitLastTask ($ fixtureThirdStore ->getId ());
107
110
108
111
$ this ->assertAlgoliaRecordValues (
109
112
$ this ->indexPrefix . 'default_products ' ,
@@ -129,7 +132,10 @@ public function testMultiStoreProductIndices()
129
132
$ this ->productPriceIndexer ->reindexRow (self ::VOYAGE_YOGA_BAG_ID );
130
133
131
134
$ this ->productsIndexer ->execute ([self ::VOYAGE_YOGA_BAG_ID ]);
132
- $ this ->algoliaHelper ->waitLastTask ();
135
+
136
+ $ this ->algoliaHelper ->waitLastTask ($ defaultStore ->getId ());
137
+ $ this ->algoliaHelper ->waitLastTask ($ fixtureSecondStore ->getId ());
138
+ $ this ->algoliaHelper ->waitLastTask ($ fixtureThirdStore ->getId ());
133
139
134
140
// default store should have the same number of products
135
141
$ this ->assertNbOfRecordsPerStore (
You can’t perform that action at this time.
0 commit comments