Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment