ElasticSearch\tests\units\Client::testIndexingDocumentWithoutId PHP Method

testIndexingDocumentWithoutId() public method

Test indexing a new document and having an auto id This means dupes will occur
    public function testIndexingDocumentWithoutId()
    {
        $doc = array('title' => 'One cool ' . $this->getTag());
        $client = \ElasticSearch\Client::connection();
        $resp = $client->index($doc, false, array('refresh' => true));
        $this->assert->array($resp)->boolean($resp['created'])->isTrue(1);
    }