@@ -178,7 +178,7 @@ public function testWaitForTaskDefault(): void
178178 $ this ->assertSame ($ response ['status ' ], 'succeeded ' );
179179 $ this ->assertSame ($ response ['uid ' ], $ promise ['taskUid ' ]);
180180 $ this ->assertArrayHasKey ('type ' , $ response );
181- $ this ->assertSame ($ response ['type ' ], 'documentAddition ' );
181+ $ this ->assertSame ($ response ['type ' ], 'documentAdditionOrUpdate ' );
182182 $ this ->assertArrayHasKey ('duration ' , $ response );
183183 $ this ->assertArrayHasKey ('startedAt ' , $ response );
184184 $ this ->assertArrayHasKey ('finishedAt ' , $ response );
@@ -192,7 +192,7 @@ public function testWaitForTaskWithTimeoutAndInterval(): void
192192 $ this ->assertSame ($ response ['status ' ], 'succeeded ' );
193193 $ this ->assertSame ($ response ['uid ' ], $ promise ['taskUid ' ]);
194194 $ this ->assertArrayHasKey ('type ' , $ response );
195- $ this ->assertSame ($ response ['type ' ], 'documentAddition ' );
195+ $ this ->assertSame ($ response ['type ' ], 'documentAdditionOrUpdate ' );
196196 $ this ->assertArrayHasKey ('duration ' , $ response );
197197 $ this ->assertArrayHasKey ('enqueuedAt ' , $ response );
198198 $ this ->assertArrayHasKey ('startedAt ' , $ response );
@@ -207,7 +207,7 @@ public function testWaitForTaskWithTimeout(): void
207207 $ this ->assertSame ($ response ['status ' ], 'succeeded ' );
208208 $ this ->assertSame ($ response ['uid ' ], $ promise ['taskUid ' ]);
209209 $ this ->assertArrayHasKey ('type ' , $ response );
210- $ this ->assertSame ($ response ['type ' ], 'documentAddition ' );
210+ $ this ->assertSame ($ response ['type ' ], 'documentAdditionOrUpdate ' );
211211 $ this ->assertArrayHasKey ('duration ' , $ response );
212212 $ this ->assertArrayHasKey ('enqueuedAt ' , $ response );
213213 $ this ->assertArrayHasKey ('startedAt ' , $ response );
@@ -218,7 +218,7 @@ public function testExceptionWhenTaskTimeOut(): void
218218 {
219219 $ res = $ this ->index ->addDocuments ([['id ' => 1 , 'title ' => 'Pride and Prejudice ' ]]);
220220 $ this ->expectException (TimeOutException::class);
221- $ this ->index ->waitForTask ($ res ['uid ' ], 0 , 20 );
221+ $ this ->index ->waitForTask ($ res ['taskUid ' ], 0 , 20 );
222222 }
223223
224224 public function testDeleteIndexes (): void
0 commit comments