spec\Spatie\SearchIndex\SearchIndexHandlers\ElasticsearchSpec::it_an_object_from_the_index_by_type_and_id PHP Метод

it_an_object_from_the_index_by_type_and_id() публичный Метод

public it_an_object_from_the_index_by_type_and_id ( Elasticsearch\Client $elasticsearch )
$elasticsearch Elasticsearch\Client
    public function it_an_object_from_the_index_by_type_and_id(Client $elasticsearch)
    {
        $elasticsearch->delete(['index' => $this->indexName, 'type' => $this->searchableType, 'id' => $this->searchableId])->shouldBeCalled();
        $this->removeFromIndexByTypeAndId($this->searchableType, $this->searchableId);
    }