You are here

public static function AttachmentTest::getFilePrefix in Webform CiviCRM Integration 8.5

Return value

string

2 calls to AttachmentTest::getFilePrefix()
AttachmentTest::cleanupFiles in tests/src/FunctionalJavascript/AttachmentTest.php
Cleanup files created during the test.
AttachmentTest::getFileParams in tests/src/FunctionalJavascript/AttachmentTest.php

File

tests/src/FunctionalJavascript/AttachmentTest.php, line 35

Class

AttachmentTest
Tests submitting a Webform with CiviCRM: Contact with File.

Namespace

Drupal\Tests\webform_civicrm\FunctionalJavascript

Code

public static function getFilePrefix() {
  if (!self::$filePrefix) {
    self::$filePrefix = "test_" . substr(md5(mt_rand()), 0, 7) . '_';
  }
  return self::$filePrefix;
}