• Getting Started
  • 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 (CLI)
    • Cookies and Sessions
    • Deprecating code
  • Optional features
  • Upgrading
  • Changelogs
  • Contributing
  • Project Governance
  1. Developer Guides
  2. Testing
  3. How To's
Version 6Supported

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