You are here

public function ProviderUrlParseTest::testUrlParsing in Video Embed Instagram 8

@dataProvider urlsWithExpectedIds

Test URL parsing works as expected.

File

tests/src/Unit/ProviderUrlParseTest.php, line 25
Contains Drupal\Tests\video_embed_instagram\Unit\ProviderUrlParseTest.

Class

ProviderUrlParseTest
Test that URL parsing for the provider is functioning.

Namespace

Drupal\Tests\video_embed_instagram\Unit

Code

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