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