You are here

public function DefaultNameTest::defaultNameTestCases in Video Embed Field 8.2

Same name and namespace in other branches
  1. 8 modules/video_embed_media/tests/src/Kernel/DefaultNameTest.php \Drupal\Tests\video_embed_media\Kernel\DefaultNameTest::defaultNameTestCases()

Test cases for ::testDefaultName().

File

modules/video_embed_media/tests/src/Kernel/DefaultNameTest.php, line 45

Class

DefaultNameTest
Test the media bundle default names.

Namespace

Drupal\Tests\video_embed_media\Kernel

Code

public function defaultNameTestCases() {
  return [
    'YouTube' => [
      'https://www.youtube.com/watch?v=gnERPdAiuSo',
      'YouTube Video (gnERPdAiuSo)',
    ],
    'Vimeo' => [
      'https://vimeo.com/21681203',
      'Drupal Commerce at DrupalCon Chicago',
    ],
  ];
}