Merge pull request #9700 from Michael-HEIW/unit-test-doc

Updated 00_Unit_Testing.md (#9699)
This commit is contained in:
Daniel Hensby 2020-09-18 14:52:34 +01:00 committed by GitHub
commit 8959212cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();