You are here

public function ProviderUrlParseTest::testUrlParsing in Video Embed Brightcove 8

Test URL parsing works as expected.

@dataProvider urlsWithExpectedIds

File

tests/src/Unit/ProviderUrlParseTest.php, line 20

Class

ProviderUrlParseTest
Test that URL parsing for the provider is functioning.

Namespace

Drupal\Tests\video_embed_brightcove\Unit

Code

public function testUrlParsing($url, $expected) {
  $this
    ->assertEquals($expected, Brightcove::getIdFromInput($url));
}