public function AttachmentTest::getFileParams in Webform CiviCRM Integration 8.5
Return value
array
1 call to AttachmentTest::getFileParams()
- AttachmentTest::addAttachmentOnContact in tests/
src/ FunctionalJavascript/ AttachmentTest.php - Add 3 attachments to the contact.
File
- tests/
src/ FunctionalJavascript/ AttachmentTest.php, line 116
Class
- AttachmentTest
- Tests submitting a Webform with CiviCRM: Contact with File.
Namespace
Drupal\Tests\webform_civicrm\FunctionalJavascriptCode
public function getFileParams() {
return [
'File1' => [
'name' => self::getFilePrefix() . 'file1.txt',
'mime_type' => 'text/plain',
'description' => 'My test description 1',
'content' => 'My test content 1',
'entity_id' => $this->rootUserCid,
'entity_table' => "civicrm_contact",
],
'File2' => [
'name' => self::getFilePrefix() . 'file2.txt',
'mime_type' => 'text/plain',
'description' => 'My test description 2',
'content' => 'My test content 2',
'entity_id' => $this->rootUserCid,
'entity_table' => "civicrm_contact",
],
'File3' => [
'name' => self::getFilePrefix() . 'file3.txt',
'mime_type' => 'text/plain',
'description' => 'My test description 3',
'content' => 'My test content 3',
'entity_id' => $this->rootUserCid,
'entity_table' => "civicrm_contact",
],
];
}