/**
* Tests that resources can be used in media_oembed_iframe preprocess.
*
* @see media_test_oembed_preprocess_media_oembed_iframe()
*
* @covers ::render
*/
public function testResourcePassedToPreprocess() { $hash =
$this->container->
get('media.oembed.iframe_url_helper'
) ->
getHash('', 0, 0
);
$url_resolver =
$this->
prophesize('\Drupal\media\OEmbed\UrlResolverInterface'
);
$resource_fetcher =
$this->
prophesize('\Drupal\media\OEmbed\ResourceFetcherInterface'
);
$provider =
new Provider('YouTube', 'https://youtube.com',
[ [ 'url' => 'https://youtube.com/foo',
],
]);
$resource = Resource::
rich('<iframe src="https://youtube.com/watch?feature=oembed"></iframe>', 320, 240,
$provider);