Attached a patch that improves and adds new tests to check that node hooks implementations are run correctly in taxonomy module.
Tests included:
- Test node-terms associations on node creation, with more than one vocabulary, and multiselect vocabulary.
- Test that node-terms relationships exist in the database.
- Test that taxonomy_node_load() populates $node->taxonomy correctly.
- Test taxonomy_node_view(). Check that the terms are displayed as links when the node is viewed.
- Test taxonomy_node_update() when editing the node with different terms.
- Test that taxonomy terms are copied to node when reverting a revision.
- Test taxonomy_node_delete_revision().
- Test taxonomy_node_delete().
Comment | File | Size | Author |
---|---|---|---|
test-taxonomy-node_hooks.patch | 9.33 KB | dropcube | |
Comments
Comment #1
dropcube CreditAttribution: dropcube commentedBug found when running the tests: #530132: Node-terms associations are not removed from DB when a node revision is deleted.
Comment #3
dropcube CreditAttribution: dropcube commentedComment #4
dropcube CreditAttribution: dropcube commented