public function testGetIndexStatuses() { $index = $this->_createIndex(); $status = new Elastica_Status($index->getClient()); $statuses = $status->getIndexStatuses(); $this->assertInternalType('array', $statuses); foreach ($statuses as $indexStatus) { $this->assertInstanceOf('Elastica_Index_Status', $indexStatus); } }
public function testGetIndexStatuses() { $indexName = 'test'; $client = new Elastica_Client(); $index = $client->getIndex($indexName); $index->create(array(), true); $status = new Elastica_Status($client); $statuses = $status->getIndexStatuses(); $this->assertInternalType('array', $statuses); foreach ($statuses as $indexStatus) { $this->assertInstanceOf('Elastica_Index_Status', $indexStatus); } }