Issue #2976889 by phenaproxima, xjm, chr.fritsch, samuel.mortenson, larowlan, alexpott: Add a trait to create media types in tests and replace MediaFunctionalTestCreateMediaTypeTrait