public function testRemovePivot() { $this->field->clearPivots(); $this->field->addPivots(array('pivot1', 'pivot2')); $this->field->removePivot('pivot1'); $this->assertEquals(array('pivot2'), $this->field->getPivots()); }