You are here

public function ProviderManagerTest::testOptionsList in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/ProviderManagerTest.php \Drupal\Tests\video_embed_field\Unit\ProviderManagerTest::testOptionsList()

Test URL parsing works as expected.

File

tests/src/Unit/ProviderManagerTest.php, line 37

Class

ProviderManagerTest
Tests the provider manager is working.

Namespace

Drupal\Tests\video_embed_field\Unit

Code

public function testOptionsList() {
  $options = $this
    ->getManagerMock()
    ->getProvidersOptionList();
  $this
    ->assertEquals($options, [
    'provider_a' => 'Provider A',
    'provider_b' => 'Provider B',
    'provider_c' => 'Provider C',
  ]);
}