There is 1 article tagged as "commands"

Testing Symfony commands with Behat

on January 18, 2019. in Programming, Development. A 5 minute read.

The other day I was creating a Symfony command that will be periodically executed by a cronjob. I decided to write a Behat test for it, to see what a test like that would look like. Plus, just because it is executed by the system from a command line, doesn’t mean we can skimp on the business requirements.