Updated 00_Unit_Testing.md (#9699)

This commit is contained in:
Michael Pritchard 2020-09-18 14:13:08 +01:00
parent ecb03562de
commit 86702f0ad4

View File

@ -109,9 +109,12 @@ end of each test.
```php ```php
use SilverStripe\Core\Config\Config; use SilverStripe\Core\Config\Config;
use SilverStripe\Dev\SapphireTest; use SilverStripe\Dev\SapphireTest;
use SilverStripe\Versioned\Versioned;
class PageTest extends SapphireTest class PageTest extends SapphireTest
{ {
protected $usesDatabase = true;
public function setUp() public function setUp()
{ {
parent::setUp(); parent::setUp();