So, it’s been a long day of development.
And the last 50 minutes have been particularly painful.
I’ve been bringing FOSUserBundle, Dunglas API Bundle, Lexik JWT Bundle, and Behat (amongst a good few others) together into one project for the first time.
Most of today has been productive. I’ve solved two of my big headaches, but as the hours have gone by, tiredness has set in.
And rather than call it a night, I did my usual “I’ll just see if I can…” once too many times, and buggered everything up.
If I had been behaving, I could have quickly done a little git bisect magic and found the source of my woes. Alas, I had not been behaving.
Anyway, the issue:
Run bin/behat , encounter error:
You have requested a non-existent service "test.client".
Well, there is a major shortage of Google help on this one.
The two most likely answers were not it.
Behat had been working just fine. I knew it was my mistake. But the project is growing and there’s just a ton of possible files that could have changed. When will I learn?
As it turned out, I had changed my behat.yml file in my tired stupor:
I’d changed env to a new Symfony Environment I had created so as not to keep messing up my local dev database every time I re-ran behat.
In my case changing back to env: "test" solved all my problems.
Ok, well not all of them… plenty of work still to do. But that’s it for this evening.
I hope that saves someone a headache in the future.
Time to commit and go to bed.