예제 #1
0
 public function testAddMergeMode()
 {
     $this->assertEquals(array(), $this->fieldMetadata->getMergeModes());
     $this->fieldMetadata->addMergeMode(MergeModes::REPLACE);
     $this->fieldMetadata->addMergeMode(MergeModes::REPLACE);
     $this->assertEquals(array(MergeModes::REPLACE), $this->fieldMetadata->getMergeModes());
     $this->fieldMetadata->addMergeMode(MergeModes::UNITE);
     $this->assertEquals([MergeModes::UNITE, MergeModes::REPLACE], $this->fieldMetadata->getMergeModes());
 }