I believe they test this with the "paper folding test". Something like this: https://www.123test.com/spatial-reasoning-test/
If you can answer at least one of those questions you probably don't have aphantasia.
If you can answer at least one of those questions you probably don't have aphantasia.