mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Fixes SapphireTest masking userland coding errors.
This commit is contained in:
parent
f1865cc798
commit
bf20d59cb8
@ -343,12 +343,18 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly
|
||||
* - Custom state helpers
|
||||
*
|
||||
* User code should call parent::setUpBeforeClass() before custom setup code
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
// Start tests
|
||||
static::start();
|
||||
|
||||
if (!static::$state) {
|
||||
throw new Exception('SapphireTest failed to bootstrap!');
|
||||
}
|
||||
|
||||
// Call state helpers
|
||||
static::$state->setUpOnce(static::class);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user