public function testWithPrefixedIndex()
{
$id = 12345;
$data = ['id' => $id, 'name' => 'Harry Potter and the wizards'];
// Make sure the document doesn't exist.
if ($this->documentsManager->exists('books', 'books', $id)) {
$this->documentsManager->delete('books', 'books', $id);
}
$this->documentsManager->index('books', 'books', $data);
$this->assertTrue($this->documentsManager->exists('books', 'books', $id));
$this->assertEquals($data, $this->documentsManager->get('books', 'books', $id)['_source']);
}