/** @test */
 public function it_can_clear_indices_for_given_active_record_class()
 {
     $activeRecord1 = new DummyActiveRecordModel();
     $activeRecord1->test = 'test';
     $activeRecord1->save();
     $activeRecord2 = new DummyActiveRecordModel();
     $activeRecord2->test = 'test';
     $activeRecord2->save();
     $index = $this->addSearchableObjectToIndex($activeRecord1);
     $this->addSearchableObjectToIndex($activeRecord2);
     $response = $this->algoliaManager->clearIndices(DummyActiveRecordModel::class);
     $index->waitTask($response[$index->indexName]['taskID']);
     $searchResult = $index->search('test');
     $this->deleteIndex($index);
     $this->assertCount(0, $searchResult['hits']);
 }