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

  1. Create custom entity type/bundle with ECK
  2. Create custom module that implements both hook_entity_create and hook_entity_insert
  3. Add breakpoint or dpm call to the hook_entity_* implementations.
  4. Add a test which uses drupalPostForm on route eck.entity.add and notice that the hook implementations are never called.

Comments

frob created an issue. See original summary.

dieterholvoet’s picture

Status: Active » Closed (cannot reproduce)

Cannot reproduce, feel free to re-open if this is still an issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.