Unverified Commit 5b454e76 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3163687 by shetpooja04, snehalgaikwad, longwave: Unused variable $id in...

Issue #3163687 by shetpooja04, snehalgaikwad, longwave: Unused variable $id in field module, BulkDeleteTest.php
parent 3312c7b1
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -344,10 +344,7 @@ public function testPurgeField() {
    // bundle.
    $actual_hooks = field_test_memorize();
    $hooks = [];
    $entities = $this->entitiesByBundles[$bundle];
    foreach ($entities as $id => $entity) {
      $hooks['field_test_field_delete'][] = $entity;
    }
    $hooks['field_test_field_delete'] = $this->entitiesByBundles[$bundle];
    $this->checkHooksInvocations($hooks, $actual_hooks);

    // The field still exists, deleted.
@@ -395,10 +392,7 @@ public function testPurgeFieldStorage() {
    // bundle.
    $actual_hooks = field_test_memorize();
    $hooks = [];
    $entities = $this->entitiesByBundles[$bundle];
    foreach ($entities as $id => $entity) {
      $hooks['field_test_field_delete'][] = $entity;
    }
    $hooks['field_test_field_delete'] = $this->entitiesByBundles[$bundle];
    $this->checkHooksInvocations($hooks, $actual_hooks);

    // The field still exists, deleted.
@@ -430,10 +424,7 @@ public function testPurgeFieldStorage() {
    // Check hooks invocations (same as above, for the 2nd bundle).
    $actual_hooks = field_test_memorize();
    $hooks = [];
    $entities = $this->entitiesByBundles[$bundle];
    foreach ($entities as $id => $entity) {
      $hooks['field_test_field_delete'][] = $entity;
    }
    $hooks['field_test_field_delete'] = $this->entitiesByBundles[$bundle];
    $this->checkHooksInvocations($hooks, $actual_hooks);

    // The field and the storage still exist, deleted.