You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @expectedDeprecation Constructing a ContextDefinition object for an entity type is deprecated in Drupal 8.6.0. Use Drupal\Core\Plugin\Context\EntityContextDefinition instead. See https://www.drupal.org/node/2976400 for more information.
* Test that the BC layer survives serialization and unserialization.
78
+
*
79
+
* @expectedDeprecation Constructing a ContextDefinition object for an entity type is deprecated in Drupal 8.6.0. Use Drupal\Core\Plugin\Context\EntityContextDefinition instead. See https://www.drupal.org/node/2976400 for more information.
* Test that getConstraints() proxies to the compatibility layer.
89
+
*
90
+
* @covers ::getConstraints
91
+
* @expectedDeprecation Constructing a ContextDefinition object for an entity type is deprecated in Drupal 8.6.0. Use Drupal\Core\Plugin\Context\EntityContextDefinition instead. See https://www.drupal.org/node/2976400 for more information.
* Test that getConstraint() proxies to the compatibility layer.
109
+
*
110
+
* @covers ::getConstraint
111
+
* @expectedDeprecation Constructing a ContextDefinition object for an entity type is deprecated in Drupal 8.6.0. Use Drupal\Core\Plugin\Context\EntityContextDefinition instead. See https://www.drupal.org/node/2976400 for more information.
* Test that setConstraints() proxies to the compatibility layer.
129
+
*
130
+
* @covers ::setConstraints
131
+
* @expectedDeprecation Constructing a ContextDefinition object for an entity type is deprecated in Drupal 8.6.0. Use Drupal\Core\Plugin\Context\EntityContextDefinition instead. See https://www.drupal.org/node/2976400 for more information.
* Test that addConstraint() proxies to the compatibility layer.
150
+
*
151
+
* @covers ::addConstraint
152
+
* @expectedDeprecation Constructing a ContextDefinition object for an entity type is deprecated in Drupal 8.6.0. Use Drupal\Core\Plugin\Context\EntityContextDefinition instead. See https://www.drupal.org/node/2976400 for more information.
* Test that isSatisfiedBy() calls the compatibility layer.
171
+
*
172
+
* @covers ::isSatisfiedBy
173
+
* @expectedDeprecation Constructing a ContextDefinition object for an entity type is deprecated in Drupal 8.6.0. Use Drupal\Core\Plugin\Context\EntityContextDefinition instead. See https://www.drupal.org/node/2976400 for more information.
174
+
*/
175
+
publicfunctiontestIsSatisfiedBy() {
62
176
// Ensure that the BC object's getSampleValues() method is called during
* Test that getConstraintObjects() adds the EntityType constraint.
191
+
*
192
+
* @covers ::getConstraintObjects
193
+
* @expectedDeprecation Constructing a ContextDefinition object for an entity type is deprecated in Drupal 8.6.0. Use Drupal\Core\Plugin\Context\EntityContextDefinition instead. See https://www.drupal.org/node/2976400 for more information.
194
+
*/
195
+
publicfunctiontestGetConstraintObjects() {
196
+
$reflector = new \ReflectionObject($this->definition);
0 commit comments