public function testConstructorGUIDs()
{
// good guids
foreach ($this->guids as $guid) {
$dir = new \Elgg\EntityDirLocator($guid);
$this->assertInstanceOf('\\Elgg\\EntityDirLocator', $dir);
}
// bad guids
$bad_guids = array("abc", null, false, 0, -123);
foreach ($bad_guids as $guid) {
$this->setExpectedException('InvalidArgumentException', "GUIDs must be integers > 0.");
$dir = new \Elgg\EntityDirLocator($guid);
}
}