Ejemplo n.º 1
0
 public function testDecimalField()
 {
     $fields = $this->item->getDecimalFields();
     $this->assertEquals(0, $fields->count());
     $index = new IndexDecimal();
     $this->item->addDecimalField($index);
     $fields = $this->item->getDecimalFields();
     $this->assertEquals($index, $fields->get(0));
     $this->item->removeDecimalField($index);
     $fields = $this->item->getDecimalFields();
     $this->assertEquals(0, $fields->count());
 }