InstagramEmbedFormatterTest.php in Media entity Instagram 3.x
File
tests/src/Functional/InstagramEmbedFormatterTest.php
View source
<?php
namespace Drupal\Tests\media_entity_instagram\Functional;
use Drupal\Tests\media\Functional\FieldFormatter\OEmbedFormatterTest;
class InstagramEmbedFormatterTest extends OEmbedFormatterTest {
protected function getFixturesDirectory() {
return drupal_get_path('module', 'media_entity_instagram') . '/tests/fixtures/oembed';
}
public function providerRender() {
return [
'Instagram' => [
'https://instagram.com/p/B2huuS8AQVq',
'instagram.json',
[],
[
'iframe' => [
'src' => '/media/oembed?url=https%3A//instagram.com/p/B2huuS8AQVq',
'width' => '658',
],
],
],
];
}
}