/** @test */ public function it_can_be_re_indexed() { $this->dummyAlgoliaManager->shouldReceive('reindex')->once()->with(DummyActiveRecordModel::class)->andReturn('response'); $response = DummyActiveRecordModel::reindex(); $this->assertEquals('response', $response); }