Asylum seekers must not be subjected to psychological tests to determine whether they are homosexual, EU's top court has ruled.
Tests to determine sexual orientation are controversial, but are sometimes used when assessing asylum claims.
The European Court of Justice (ECJ) ruling is binding in all 28 EU states.
The ECJ case relates to a Nigerian man who submitted an asylum application in Hungary in April 2015. He feared persecution in Nigeria for being gay.