Fixed the phpunit test for DialogHelper