public function TestWrapperTarget::testBuildConfigurationForm in Feeds Paragraphs 8
@covers ::buildConfigurationForm
File
- tests/
src/ Unit/ TestWrapperTarget.php, line 93
Class
- TestWrapperTarget
- @group Feeds Paragraphs @coversDefaultClass \Drupal\feeds_para_mapper\Feeds\Target\WrapperTarget
Namespace
Drupal\Tests\feeds_para_mapper\UnitCode
public function testBuildConfigurationForm() {
$formState = $this
->getFormStateMock();
$textForm = $this->target
->buildConfigurationForm(array(), $formState);
$wrapperForm = $this->wrapperTarget
->buildConfigurationForm(array(), $formState);
$message = "Wrapper has the target's form element: ";
foreach ($textForm as $field => $formMarkup) {
$this
->assertArrayHasKey($field, $wrapperForm, $message . $field);
}
$this
->assertArrayHasKey('max_values', $wrapperForm, $message . 'max_values');
}