Remove failing test related to post galleries in the 4.0 branch.
See #30284.
Merges [30285] to the 4.0 branch.