Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make beforecreate hooks static functions #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dafeder
Copy link
Member

@dafeder dafeder commented Aug 26, 2016

On the last update of the dkanextention, the corresponding behat upgrade broke a number of tests due to errors about the hook functions being called non-statically. Ultimately we rolled back the behat version and this PR, but I'm resubmitting for reference when we ultimately do update behat.

I'm not completely convinced that this is the fix that's necessary. The hooks in questions seem to be step hooks, and according to the behat documentation should not be static. So the problem may lie in something about the scope definition, not the hook functions themselves.

@dkinzer
Copy link
Contributor

dkinzer commented Sep 12, 2016

@dafeder I struggled to merge the HHS dkan customization and I think that this step is actually a bug in the upstream version. I ended up having to change it to @BeforeEntityCreateScope in order to have HHS tests pass.

https://github.com/NuCivic/dkanextension/pull/61/files#diff-b27d85214e36cbc69430a94630a856a4L173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants