You are here

public function TestWrapperTarget::testDefaultConfiguration in Feeds Paragraphs 8

@covers ::defaultConfiguration

File

tests/src/Unit/TestWrapperTarget.php, line 79

Class

TestWrapperTarget
@group Feeds Paragraphs @coversDefaultClass \Drupal\feeds_para_mapper\Feeds\Target\WrapperTarget

Namespace

Drupal\Tests\feeds_para_mapper\Unit

Code

public function testDefaultConfiguration() {
  $textDefaultConfig = $this->target
    ->defaultConfiguration();
  $wrapperDefaultConfig = $this->wrapperTarget
    ->defaultConfiguration();
  $message = "Wrapper has the target's default configuration: ";
  foreach ($textDefaultConfig as $key => $configItem) {
    $this
      ->assertArrayHasKey($key, $wrapperDefaultConfig, $message . $key);
  }
  $this
    ->assertArrayHasKey('max_values', $wrapperDefaultConfig, $message . 'max_values');
}