Skip to content

Commit

Permalink
check if the document is really deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexucis committed Nov 11, 2017
1 parent 6f004b3 commit 5123214
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ public function testDeleteDocument($alias)
$this->assertTrue($this->helper->addDocument($alias, $type, $body, $id));

$this->helper->deleteDocument($alias, $id, $type);
$param = array(
'id' => $id,
'type' => $type,
'index' => $alias
);

$this->expectException(\Elasticsearch\Common\Exceptions\Missing404Exception::class);
$this->client->get($param);
}

/**
Expand Down

0 comments on commit 5123214

Please sign in to comment.