ENHANCEMENT Removed object state setting in CMSMain/SiteTree publication process: DeletedFromStage, CheckedPublicationDifferences, IsAddedToStage and added getters for them. Improves testability as we don't have to rely on random methods like MenuTitle() being called to set object state. ENHANCEMENT Flushing cache in SiteTree->onAfterWrite() and SiteTree->onAfterDelete() to ensure the publication state is up to date
ENHANCEMENT Removed object state setting in CMSMain/SiteTree publication process: DeletedFromStage, CheckedPublicationDifferences, IsAddedToStage and added getters for them. Improves testability as we don't have to rely on random methods like MenuTitle() being called to set object state.
ENHANCEMENT Flushing cache in SiteTree->onAfterWrite() and SiteTree->onAfterDelete() to ensure the publication state is up to date


git-svn-id: 61ad833bee3a753d148e0d349fad2a795836b318@69410 467b73ca-7a2a-4603-9d3b-597d59a354a9

dhensby/silverstripe-cms,dhensby/silverstripe-reports,jonom/silverstripe-cms,jonom/silverstripe-cms,dhensby/silverstripe-reports,silverstripe/silverstripe-cms,dhensby/silverstripe-cms,silverstripe/silverstripe-siteconfig,helpfulrobot/i-lateral-silverstripe-siteconfig,dhensby/silverstripe-cms,silverstripe-labs/silverstripe-reports,silverstripe/silverstripe-cms,silverstripe-labs/silverstripe-reports