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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Fixtures and LastEdited


Go to End


561 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