Example #1
0
 /**
  * @covers Paradox\Client::createCapConstraint
  */
 public function testCreateCapConstraint()
 {
     $id = $this->client->createCapConstraint($this->collectionName, 10);
     $info = $this->client->getIndexInfo($this->collectionName, $id);
     $this->assertInternalType('array', $info, "The index we just created is missing");
     $this->assertEquals("cap", $info['type'], 'The type of the created index should be "cap"');
     $this->assertEquals(10, $info['size'], "The size of the created index does not match");
 }