FieldUiTestTrait.php
Namespace
Drupal\field_ui\TestsFile
-
core/
modules/ field_ui/ src/ Tests/ FieldUiTestTrait.php
View source
<?php
namespace Drupal\field_ui\Tests;
@trigger_error(__NAMESPACE__ . '\\FieldUiTestTrait is deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Instead, use \\Drupal\\Tests\\field_ui\\Traits\\FieldUiTestTrait. See https://www.drupal.org/node/3001664', E_USER_DEPRECATED);
/**
* Provides common functionality for the Field UI test classes.
*
* @deprecated in drupal:8.7.0 and is removed from drupal:9.0.0.
* Use \Drupal\Tests\field_ui\Traits\FieldUiTestTrait. See
* https://www.drupal.org/node/3001664
*/
trait FieldUiTestTrait {
/**
* Creates a new field through the Field UI.
*
* @param string $bundle_path
* Admin path of the bundle that the new field is to be attached to.
* @param string $field_name
* The field name of the new field storage.
* @param string $label
* (optional) The label of the new field. Defaults to a random string.
* @param string $field_type
* (optional) The field type of the new field storage. Defaults to
* 'test_field'.
* @param