public function testGetCallbackToAddDataTypeToSnak()
 {
     $instance = new CallbackFactory();
     $dataTypeLookup = $this->getPropertyDataTypeLookup();
     $callback = $instance->getCallbackToAddDataTypeToSnak($dataTypeLookup);
     $this->assertInternalType('callable', $callback);
     $array = array('property' => 'P1');
     $array = $callback($array);
     $this->assertSame(array('property' => 'P1', 'datatype' => 'propertyDataType'), $array);
 }
 /**
  * @param array $array
  * @param string $path
  *
  * @TODO FIXME duplicated / similar code in Repo ResultBuilder
  *
  * @return array
  */
 private function getArrayWithDataTypesInGroupedSnakListAtPath(array $array, $path)
 {
     return $this->modifier->modifyUsingCallback($array, $path, $this->callbackFactory->getCallbackToAddDataTypeToSnaksGroupedByProperty($this->dataTypeLookup));
 }