Example #1
0
 public function testIntegerField()
 {
     $fields = $this->item->getIntegerFields();
     $this->assertEquals(0, $fields->count());
     $index = new IndexInteger();
     $this->item->addIntegerField($index);
     $fields = $this->item->getIntegerFields();
     $this->assertEquals($index, $fields->get(0));
     $this->item->removeIntegerField($index);
     $fields = $this->item->getIntegerFields();
     $this->assertEquals(0, $fields->count());
 }