View more context

 

Mo

I am using the same config here and it works fine 😕

robbieaverill

not all repos have been migrated to xenial yet, so some may still use trusty as the default when you don't specify one

jakx

https://slackarchive.silverstripe.org/slack-archive/message/265283#msg_265283 @Mo did you ever get to the bottom of this?

i.e

  1. Fatal error: Uncaught Error: Call to a member function activate() on boolean in /path/to/project/vendor/silverstripe/framework/src/Dev/State/KernelTestState.php on line 91

I'm having the same issue at the moment

Show 3 attachment(s)
slackarchive.silverstripe.org  
Slack Archive - Message by Mo | SilverStripe Users Slackarchive

Fatal error: Uncaught Error: Call to a member function activate() on boolean in /path/to/project/vendor/silverstripe/framework/src/Dev/State/KernelTestState.php on line 91

slackarchive.silverstripe.org  
Slack Archive - Message by Mo | SilverStripe Users Slackarchive

Fatal error: Uncaught Error: Call to a member function activate() on boolean in /path/to/project/vendor/silverstripe/framework/src/Dev/State/KernelTestState.php on line 91

slackarchive.silverstripe.org  
Slack Archive - Message by Mo | SilverStripe Users Slackarchive

Fatal error: Uncaught Error: Call to a member function activate() on boolean in /path/to/project/vendor/silverstripe/framework/src/Dev/State/KernelTestState.php on line 91

Hide attachment content
jakx

Seems to have been resolved, I suspect it was something local to the test that was running at the time that the error was triggered

Mo

@jakx I think I might have just restarted the computer for that one...

👍 (1)
Jason

Hi, This may be a stupid question, but how would one go about testing functionality on an object that depends on a has_one relationship with a file or image?

Jason

Can the has_one be managed via a fixture file, or would there have to be some actual files available somewhere that can be referenced during tests?

Jason

I want to check a path (url) that would be returned under certain circumstances, when a file is associated and when one isn’t