public function ProviderUrlParseTest::testUrlParsing in Video Embed HTML5 8
@dataProvider urlsWithExpectedIds
Test URL parsing works as expected.
File
- tests/
src/ Unit/ ProviderUrlParseTest.php, line 21
Class
- ProviderUrlParseTest
- Test that URL parsing for the provider is functioning.
Namespace
Drupal\Tests\video_embed_html5\UnitCode
public function testUrlParsing($url, $expected) {
if (is_array($expected)) {
$this
->assertArrayEquals($expected, Html5::getIdFromInput($url));
}
else {
$this
->assertEquals($expected, Html5::getIdFromInput($url));
}
}