silverstripe-labs/silverstripe-registry — pull request #5 by madmatt (2014-01-16 22:38:50+00:00)
Title: BUGFIX: Remove `TestOnly` interface to allow LeftAndMainTest to pass.

Normally, you could add the 'TestOnly' class, and then add that class into
your main Test's `$extraDataObjects` var to have it loaded only during tests.
However, we can't do that here, because LeftAndMain is where we would need to
add it, and we can't modify core. Instead, we remove the `TestOnly` interface.
The database isn't built with this class because it lives in the tests/
folder, so there's no risk that this leaks the class into the normal database.