View more context

 

kinglozzer

Hmm, I’m not sure why that line actually needs to be there 😛

kinglozzer

I’m surprised this hasn’t tripped anyone up before

wmk

ah, this project has injected another class instead of Member...

wmk

Hmm, does Injector work differently compared to old Object::use_custom_class() ?

nightjarnz

No I don't think so @wmk - but the way the table name is generated from the (instance) classname might be what is impacting you

nightjarnz

i.e. database builds with tempdb.TheCustomMember instead of tempdb.Member, then attempts to look up Member because 'injection' is a bit fluid like that.

wilr

Weird one in Behat

  1. Given I am logged in with "ADMIN" permissions
fails if the user is already logged in as the Login form doesn’t appear if the user is logged in. Perhaps the Context should check if the current user is already logged in and if so don’t try and login again?

nightjarnz

Sounds like state isn't clearing between tests @wmk 😱

nightjarnz

Given is usually part of the background or setup phase... there should be no pre-existing state at that point :/