0d1bac38b7a3142db5f7121946b692489d52df9e
[yaffs-website] / web / modules / contrib / blazy / tests / src / Traits / BlazyPropertiesTestTrait.php
1 <?php
2
3 namespace Drupal\Tests\blazy\Traits;
4
5 /**
6  * A Trait common for Blazy tests.
7  */
8 trait BlazyPropertiesTestTrait {
9
10   /**
11    * The blazy admin service.
12    *
13    * @var \Drupal\blazy\Form\BlazyAdminInterface
14    */
15   protected $blazyAdmin;
16
17   /**
18    * The blazy admin service.
19    *
20    * @var \Drupal\blazy\Form\BlazyAdminFormatter
21    */
22   protected $blazyAdminFormatter;
23
24   /**
25    * The blazy manager service.
26    *
27    * @var \Drupal\blazy\BlazyManagerInterface
28    */
29   protected $blazyManager;
30
31   /**
32    * The entity manager.
33    *
34    * @var \Drupal\Core\Entity\EntityFieldManagerInterface
35    */
36   protected $entityFieldManager;
37
38   /**
39    * The entity display.
40    *
41    * @var \Drupal\Core\Entity\Display\EntityViewDisplayInterface
42    */
43   protected $display;
44
45   /**
46    * The node entity.
47    *
48    * @var \Drupal\node\NodeInterface
49    */
50   protected $node;
51
52   /**
53    * The entity.
54    *
55    * @var \Drupal\Core\Entity\EntityInterface
56    */
57   protected $entity;
58
59   /**
60    * The entity.
61    *
62    * @var \Drupal\Core\Entity\EntityInterface
63    */
64   protected $entities;
65
66   /**
67    * The node entity.
68    *
69    * @var \Drupal\Core\Entity\EntityInterface
70    */
71   protected $referencingEntity;
72
73   /**
74    * The referenced node entity.
75    *
76    * @var \Drupal\Core\Entity\EntityInterface
77    */
78   protected $referencedEntity;
79
80   /**
81    * The bundle name.
82    *
83    * @var string
84    */
85   protected $bundle;
86
87   /**
88    * The target bundle names.
89    *
90    * @var array
91    */
92   protected $targetBundles;
93
94   /**
95    * The tested entity type.
96    *
97    * @var string
98    */
99   protected $entityType;
100
101   /**
102    * The created item.
103    *
104    * @var string
105    */
106   protected $testItem;
107
108   /**
109    * The created items.
110    *
111    * @var array
112    */
113   protected $testItems = [];
114
115   /**
116    * The formatter definition.
117    *
118    * @var array
119    */
120   protected $formatterDefinition = [];
121
122   /**
123    * The formatter plugin manager.
124    *
125    * @var \Drupal\Core\Field\FormatterPluginManager
126    */
127   protected $formatterPluginManager;
128
129   /**
130    * The tested type definitions.
131    *
132    * @var array
133    */
134   protected $typeDefinition = [];
135
136   /**
137    * The tested field name.
138    *
139    * @var string
140    */
141   protected $testFieldName;
142
143   /**
144    * The tested field type.
145    *
146    * @var string
147    */
148   protected $testFieldType;
149
150   /**
151    * The tested empty field name.
152    *
153    * @var string
154    */
155   protected $testEmptyName;
156
157   /**
158    * The tested empty field type.
159    *
160    * @var string
161    */
162   protected $testEmptyType;
163
164   /**
165    * The tested formatter ID.
166    *
167    * @var string
168    */
169   protected $testPluginId;
170
171   /**
172    * The tested entity reference formatter ID.
173    *
174    * @var string
175    */
176   protected $entityPluginId;
177
178   /**
179    * The maximum number of created paragraphs.
180    *
181    * @var int
182    */
183   protected $maxParagraphs = 1;
184
185   /**
186    * The maximum number of created images.
187    *
188    * @var int
189    */
190   protected $maxItems = 1;
191
192   /**
193    * The tested skins.
194    *
195    * @var array
196    */
197   protected $skins = [];
198
199 }