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