/** * @test */ public function it_should_delete_docs() { /** * * Expectation * */ $this->client->shouldReceive('delete')->with(['id' => 1, 'index' => 'Husband', 'type' => 'Husband'])->andReturn(); $this->index->shouldReceive('getName')->andReturn('Husband'); /** * * Assertion * */ $this->proxy->deleteDoc(1); }