Problem/Motivation
This is a follow-up on this comment: https://www.drupal.org/node/2364555#comment-9336771
SqlContentEntityStorageSchema::performFieldSchemaOperation() has no unit test coverage, though its wrapper method does: onFieldStorageDefinitionCreate().
There should be wider unit coverage of performFieldSchemaOperation(), since it's the main dependency of a number of wrapper methods for various combination of operations and underlying table mappings.
Proposed resolution
Write a thorough unit test of performFieldSchemaOperation().
Remaining tasks
Review the patch.
Commit the patch.
Rejoice.
User interface changes
API changes
Beta phase evaluation
Comments
Comment #1
mile23The patch.
Mocks all dependencies, follows all code paths.
Comment #2
mile23Comment #3
mile23Needed a reroll.
Added some comments.
Comment #12
daffie commentedLets add the testing for the method Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::performFieldSchemaOperation().
Comment #13
dhirendra.mishra commentedManually re-rolled it against 8.9.x
Comment #14
daffie commented@dhirendra.mishra: This patch will need to go in 9.3, not 8.9.
Comment #15
karishmaamin commentedRe-rolled patch against 9.3
Comment #16
akshay_dCustom command failure fixed. Please Review
Comment #17
kostyashupenkoComment #21
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.