Problem/Motivation
I am writing tests that create custom ECK entities using drupalPostForm and they do not fire the expected hook_entity_* hooks.
Proposed resolution
Make it so using drupalPostForm to create eck entities it doesn't bypass hook_entity_* hooks.
steps to reproduce
- Create custom entity type/bundle with ECK
- Create custom module that implements both
hook_entity_createandhook_entity_insert - Add breakpoint or
dpmcall to thehook_entity_*implementations. - Add a test which uses
drupalPostFormon routeeck.entity.addand notice that the hook implementations are never called.
Comments
Comment #2
dieterholvoet commentedCannot reproduce, feel free to re-open if this is still an issue.