DrupalDriver
DrupalDriver copied to clipboard
How to add a DatestampHandler?
I was battling with a field handler not working as expected when I realised it was actually looking for a DatestampHandler rather than a DatetimeHandler. I'd like to create a DatestampHandler class but I'm not sure where to put it so it will get autoloaded in my project. Any advice?
I've managed to get it working by adding the class to my FeatureContext.php as a separately namespaced class and can confirm that the identical DatetimeHandler code placed in a DatestampHandler class works as expected with date ranges where both value and value2 are stored in the db.
I proposed the implementation of the handler for D7 with this commit https://github.com/jhedstrom/DrupalDriver/pull/98/commits/d1a315969e449f4dbcab3e3006720baae42f315c