public function testgetPrimaryGroupID() { //unset and reconnect Db to resolve mysqli fetch exeception global $db; unset($db->database); $db->checkConnection(); $securityGroup = new SecurityGroup(); $result = $securityGroup->getPrimaryGroupID(); $this->assertEquals(null, $result); }