Example #1
0
 /**
  * @covers Paradox\Client::deleteIndex
  */
 public function testDeleteIndex()
 {
     $id = $this->client->createSkipListIndex($this->collectionName, 'myfield', true);
     //Check that the index is created
     $index = $this->client->getIndexInfo($this->collectionName, $id);
     $this->assertInternalType('array', $index, "The index info should be an array");
     //Delete
     $this->client->deleteIndex($this->collectionName, $id);
     //Check that the index is deleted
     $index = $this->client->getIndexInfo($this->collectionName, $id);
     $this->assertNull($index, "Since the index does not exist, a null is expected");
 }