/** * @covers Paradox\Client::getIndexInfo */ public function testGetIndexInfo() { $id = $this->client->createSkipListIndex($this->collectionName, 'myfield', true); //Check that the index is created $info = $this->client->getIndexInfo($this->collectionName, $id); $this->assertInternalType('array', $info, "The index info should be an array"); $this->assertEquals("skiplist", $info['type'], 'The type of the created index should be "skiplist"'); $this->assertEquals('myfield', $info['fields'][0], "The field of the created index does not match"); $this->assertTrue($info['unique'], 'The unique of the created index should be "true"'); }