Loading core/modules/field/tests/src/Kernel/BulkDeleteTest.php +3 −12 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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. Loading Loading @@ -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. Loading Loading
core/modules/field/tests/src/Kernel/BulkDeleteTest.php +3 −12 Original line number Diff line number Diff line Loading @@ -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. Loading Loading @@ -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. Loading Loading @@ -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. Loading