Example #1
0
 public function testMergeWithDependantCollections()
 {
     $field = new Field('foo', Mapping::TYPE_STRING, ['used_by_collections' => [1, 2]]);
     $other = new Field('foo', Mapping::TYPE_STRING, ['used_by_collections' => [2, 3]]);
     $merged = $field->mergeWith($other);
     $this->assertEquals([1, 2, 3], $merged->getDependantCollections());
 }