• Getting Started
  • Lessons
  • Developer Guides
    • Model and Databases
    • Templates and Views
    • Controllers
    • Forms
    • Configuration
    • Extending Silverstripe CMS
    • Testing
      • Unit and Integration Testing
      • Functional Testing
      • Behavior Testing
      • Fixtures
      • Testing Glossary
      • How To's
        • How to write a SapphireTest
        • How to write a FunctionalTest
        • How to use a FixtureFactory
        • How to test emails within unit tests
    • Debugging
    • Performance
    • Security
    • Email
    • Integration and Web Services
    • Search
    • i18n
    • Files
    • Customising the Admin Interface
    • Execution pipeline
    • Command Line Interface
    • Cookies and Sessions
    • Graphql
  • Upgrading
  • Changelogs
  • Contributing
  • Project Governance
  1. Developer Guides
  2. Testing
  3. How To's
Version 4End of Life

This version of Silverstripe CMS will not receive 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

Edit on GitHub