Version 3 end of life
This version of Silverstripe CMS will not recieve any additional bug fixes or documentation updates. Go to documentation for the most recent stable version.

How To's: Testing

How to write a SapphireTest
Learn the basics of unit testing in Silverstripe
How to write a FunctionalTest
Expand your testing capabilities with integrations tests
How to use a FixtureFactory
Provide context to your tests with database fixtures
How to test emails within unit tests
Test email functionality without ever hitting an inbox