From 86702f0ad4fd367f822bc7abd443e5b3df8d8abf Mon Sep 17 00:00:00 2001 From: Michael Pritchard Date: Fri, 18 Sep 2020 14:13:08 +0100 Subject: [PATCH] Updated 00_Unit_Testing.md (#9699) --- docs/en/02_Developer_Guides/06_Testing/00_Unit_Testing.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/en/02_Developer_Guides/06_Testing/00_Unit_Testing.md b/docs/en/02_Developer_Guides/06_Testing/00_Unit_Testing.md index 3ac913c90..83543b3b1 100644 --- a/docs/en/02_Developer_Guides/06_Testing/00_Unit_Testing.md +++ b/docs/en/02_Developer_Guides/06_Testing/00_Unit_Testing.md @@ -109,9 +109,12 @@ end of each test. ```php use SilverStripe\Core\Config\Config; use SilverStripe\Dev\SapphireTest; +use SilverStripe\Versioned\Versioned; class PageTest extends SapphireTest { + protected $usesDatabase = true; + public function setUp() { parent::setUp();