public function testThumbnailUri(string
$remote_thumbnail_url, array
$thumbnail_headers, string
$expected_extension): void
{ // Create a fake resource with the given thumbnail URL.
$resource = Resource::
rich('<html></html>', 16, 16, NULL, 'Test resource', NULL, NULL, NULL,
$remote_thumbnail_url, 16, 16
);
$thumbnail_url =
$resource->
getThumbnailUrl()->
toString();
// There's no need to resolve the resource URL in this test; we just need
// to fetch the resource.
$this->container->
set( 'media.oembed.url_resolver',
$this->
prophesize(UrlResolverInterface::
class)->
reveal() );
// Mock the resource fetcher so that it will return our fake resource.
$resource_fetcher =
$this->
prophesize(ResourceFetcherInterface::
class);
$resource_fetcher->
fetchResource(Argument::
any())