3 namespace Drupal\Tests\blazy\Traits;
6 * A Trait common for Blazy tests.
8 trait BlazyPropertiesTestTrait {
11 * The blazy admin service.
13 * @var \Drupal\blazy\Form\BlazyAdminInterface
15 protected $blazyAdmin;
18 * The blazy admin service.
20 * @var \Drupal\blazy\Form\BlazyAdminFormatter
22 protected $blazyAdminFormatter;
25 * The blazy manager service.
27 * @var \Drupal\blazy\BlazyManagerInterface
29 protected $blazyManager;
34 * @var \Drupal\Core\Entity\EntityFieldManagerInterface
36 protected $entityFieldManager;
41 * @var \Drupal\Core\Entity\Display\EntityViewDisplayInterface
48 * @var \Drupal\node\NodeInterface
55 * @var \Drupal\Core\Entity\EntityInterface
62 * @var \Drupal\Core\Entity\EntityInterface
69 * @var \Drupal\Core\Entity\EntityInterface
71 protected $referencingEntity;
74 * The referenced node entity.
76 * @var \Drupal\Core\Entity\EntityInterface
78 protected $referencedEntity;
88 * The target bundle names.
92 protected $targetBundles;
95 * The tested entity type.
99 protected $entityType;
113 protected $testItems = [];
116 * The formatter definition.
120 protected $formatterDefinition = [];
123 * The formatter plugin manager.
125 * @var \Drupal\Core\Field\FormatterPluginManager
127 protected $formatterPluginManager;
130 * The tested type definitions.
134 protected $typeDefinition = [];
137 * The tested field name.
141 protected $testFieldName;
144 * The tested field type.
148 protected $testFieldType;
151 * The tested empty field name.
155 protected $testEmptyName;
158 * The tested empty field type.
162 protected $testEmptyType;
165 * The tested formatter ID.
169 protected $testPluginId;
172 * The tested entity reference formatter ID.
176 protected $entityPluginId;
179 * The maximum number of created paragraphs.
183 protected $maxParagraphs = 1;
186 * The maximum number of created images.
190 protected $maxItems = 1;
197 protected $skins = [];