public function EntityFormTest::providerTestGetFormEntityFormNodeIsImported in Acquia Content Hub 8
Data provider for testGetFormEntityFormNodeIsImported().
Return value
array Data.
File
- tests/
src/ Unit/ Form/ EntityFormTest.php, line 147
Class
- EntityFormTest
- PHPUnit test for the EntityForm class.
Namespace
Drupal\Tests\acquia_contenthub\Unit\FormCode
public function providerTestGetFormEntityFormNodeIsImported() {
$yes_local_change = TRUE;
$no_local_change = FALSE;
$yes_auto_update = TRUE;
$no_auto_update = FALSE;
$yes_local_change_text = 'This syndicated content has been modified locally, therefore it is no longer automatically synchronized to its original content.';
$no_local_change_text = 'This is a syndicated content. What happens if its original content is updated?';
$data = [];
$data['yes local change, no auto update'] = [
$yes_local_change,
$no_auto_update,
$yes_local_change_text,
];
$data['no local change, yes auto update'] = [
$no_local_change,
$yes_auto_update,
$no_local_change_text,
];
return $data;
}