public function ProviderManagerTest::testDefinitionListFromOptionsList in Video Embed Field 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/ProviderManagerTest.php \Drupal\Tests\video_embed_field\Unit\ProviderManagerTest::testDefinitionListFromOptionsList()
Test filtering the definition list from user input via checkboxes.
@dataProvider optionsWithExpectedProviders
File
- tests/
src/ Unit/ ProviderManagerTest.php, line 51
Class
- ProviderManagerTest
- Tests the provider manager is working.
Namespace
Drupal\Tests\video_embed_field\UnitCode
public function testDefinitionListFromOptionsList($user_input, $expected_providers) {
$this
->assertEquals($expected_providers, $this
->getManagerMock()
->loadDefinitionsFromOptionList($user_input));
}