public function EntityFieldExportTest::testSettings in REST Views 8
Same name and namespace in other branches
- 2.0.x 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 132
Class
- EntityFieldExportTest
- Test the EntityFieldExport views field plugin.
Namespace
Drupal\Tests\rest_views\UnitCode
public function testSettings() {
$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);
}