Skip to content

Commit fc711cd

Browse files
committed
Fix typo in bundle cleanup.
1 parent 5f3c1f5 commit fc711cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Module/DrupalUser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private function deleteUsersContent($uid) {
200200
continue;
201201
}
202202
try {
203-
/** @var EntityStorageInterface $storage */
203+
/** @var EntityStorageInterface $storage */
204204
$storage = \Drupal::entityTypeManager()->getStorage($cleanup_entity);
205205
}
206206
catch (\Exception $e) {
@@ -209,7 +209,7 @@ private function deleteUsersContent($uid) {
209209
}
210210
try {
211211
$bundles = \Drupal::service('entity_type.bundle.info')->getBundleInfo($cleanup_entity);
212-
foreach ($bundles as $bundle) {
212+
foreach ($bundles as $bundle => $bundle_data) {
213213
$all_bundle_fields = \Drupal::service('entity_field.manager')->getFieldDefinitions($cleanup_entity, $bundle);
214214
if (isset($all_bundle_fields['uid'])) {
215215
$entities = $storage->loadByProperties(['uid' => $uid]);

0 commit comments

Comments
 (0)