You are here

public function EntityFieldExportTest::testSettings in REST Views 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/EntityFieldExportTest.php \Drupal\Tests\rest_views\Unit\EntityFieldExportTest::testSettings()

Check that the field does not use multi-type and separator options.

File

tests/src/Unit/EntityFieldExportTest.php, line 135

Class

EntityFieldExportTest
Test the EntityFieldExport views field plugin.

Namespace

Drupal\Tests\rest_views\Unit

Code

public function testSettings() : void {
  $options = $this->handler
    ->defineOptions();
  $this
    ->assertArrayNotHasKey('multi_type', $options);
  $this
    ->assertArrayNotHasKey('separator', $options);
  $form = [];
  $this->handler
    ->multiple_options_form($form, new FormState());
  $this
    ->assertArrayNotHasKey('multi_type', $form);
  $this
    ->assertArrayNotHasKey('separator', $form);
}