Well for one I am making an assumption, when it was stated "junction box" I assumed it was a bog standard junction box rather than one deemed maintenance free such as a wago type set up.
If that is the case then that alone would be enough for me.
And if that is the case then that alone is enough to complain about and the fact that it was behind a tiled wall in a shower enclosure is not relevant.
I must admit I am not totally convinced of the MF idea or the reliability of "wago types" for all current carrying scenarios but that is purely my bad and many may quite rightly disagree with me on that one.
You presumably don't have to use them?
Also the "probable" lack of protection of being out of a permitted zone - I am not a fan of all of those permitted zones and the verticals are my favourite followed by the horizontals say especially in kitchens where their presence might be judged as more likely. The ones that concern me the most are the corners, I do not like them and even more so the corner of the top portion of a wall. Yes all of these are permitted but some I am not easily pleased with along with the idea of the 2" (50mm) depth too.
Maybe not, but that doesn't mean you can say that a cable and an appropriate junction box are not allowed in those locations.*
The problem of accidental breakage and impact protection and lack of ingress protection via moisture also worries with a standard JB, yes the same could be true of a metal box in the wall for a socket or a switch etc and believe me I have found some really corrosion rotted boxes but at least they can be inspected periodically with more ease.
A cable unbroken (say T & E) in a wall would have at least some better IP to protect it unless there is a soldered joint etc in there.
I recently bought some of those Wago junction boxes - they aren't waterproof in any way.
And yet in one of those corner zones it would be allowed, irrespective of whether the wall was painted, wallpapered, panelled or tiled, and irrespective of whether the wall partly enclosed a bedroom, or a living room, or a hallway, or a WC, or a kitchen, or a bathroom, or a shower.
* And before you think of saying you didn't, look back at the context.
Posts 1-7 had been about those sockets half covered by a floor.
#8 - you introduced the topic of a socket
in a shower room.
#10 - securespark posted about what he'd found behind the tiles in
a shower enclosure, saying not one thing about it not being in a permitted zone.
#12 & #13 continued the theme of situations
relevant to showers.
So, summarising, the context was
only about showers, and
nothing to do with generic restrictions on buried cables, and in that context I asked "A cable in the wall with a buried junction box would be allowed, wouldn't it?"
And you said "No".