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
@@ -159,6 +160,12 @@ private function findSubContextClasses()
159
160
160
161
// Additional subcontext locations may be specified manually in behat.yml.
161
162
if (isset($this->parameters['subcontexts']['paths'])) {
163
+
if (!empty($this->parameters['subcontexts']['paths'])) {
164
+
@trigger_error(
165
+
'The `subcontexts.paths` parameter is deprecated in Drupal Behat Extension 4.0.0 and will be removed in 4.1.0. Normal Behat contexts should be used instead and loaded via behat.yml.',
@@ -173,7 +180,8 @@ private function findSubContextClasses()
173
180
$classes = get_declared_classes();
174
181
foreach ($classesas$class) {
175
182
$reflect = new \ReflectionClass($class);
176
-
if (!$reflect->isAbstract() && $reflect->implementsInterface('Drupal\DrupalExtension\Context\DrupalSubContextInterface')) {
183
+
if (!$reflect->isAbstract() && $reflect->implementsInterface(DrupalSubContextInterface::class)) {
184
+
@trigger_error('Sub-contexts are deprecated in Drupal Behat Extension 4.0.0 and will be removed in 4.1.0. Class ' . $class . ' is a subcontext. This logic should be moved to a normal Behat context and loaded via behat.yml.', E_USER_DEPRECATED);
0 commit comments