Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Fixtures and LastEdited


Reply


303 Views

Avatar
Aatch

Community Member, 1 Post

9 January 2012 at 5:23pm

I am trying to run some Unit Tests, and I am using the LastEdited date to infer some information, However setting it in the fixture file doesn't seem to do anything, it just sets it to the current time, my initial guess is that it adds the LastEdited field in, then promptly overwrites it because the object has been edited.

I was wondering if there is a way around this behaviour, or will I have to dig into the sapphire code?

Thanks