Check publish workflow dates towards the document we are testing

This commit solves the issue https://github.com/symfony-cmf/symfony-cmf/issues/172 for SimpleCmsBundle but introduces another problem:
the test fails because after the flush on line 48 the value of $data['publishStartDate'] and $data['publishEndDate'] is changed to the day before.