public function ProviderUrlParseTest::urlsWithExpectedIds in Video Embed HTML5 8
A data provider for URL parsing test cases.
Return value
array An array of test cases.
File
- tests/
src/ Unit/ ProviderUrlParseTest.php, line 37
Class
- ProviderUrlParseTest
- Test that URL parsing for the provider is functioning.
Namespace
Drupal\Tests\video_embed_html5\UnitCode
public function urlsWithExpectedIds() {
return [
'HTML5 video' => [
'https://www.html5rocks.com/en/tutorials/video/basics/devstories.mp4',
[
'https://www.html5rocks.com/en/tutorials/video/basics/devstories.mp4',
'mp4',
],
],
'No HTML5 video' => [
'https://www.youtube.com/watch?v=8HVWitAW-Qg',
FALSE,
],
];
}