Jeffrey Way’s Test Helpers Package.
Problem: the Factory class does not support UUID/GUID generation, and will mess with your tests by filling your foreign and primary keys with what it considers “strings”, stuff like “abcdef-1” or “ouibuh-3”.
public function getDataType($col)<br>
{<br>
return $col->getType()->getName();<br>
}
Here’s the modified version:
public function getDataType($col) {<br>
$type = $col->getType()->getName();<br>
if ($type === 'string' && $col->getLength() === 36) {<br>
return 'uuid';<br>
}<br>
return $type;<br>
}