mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9700 from Michael-HEIW/unit-test-doc
Updated 00_Unit_Testing.md (#9699)
This commit is contained in:
commit
8959212cff
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user