Skip to content

Commit 8c46e09

Browse files
authored
Support tests in v1.1.9
1 parent 3c377e3 commit 8c46e09

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tests/UserPluginTestCase.php

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1-
<?php namespace Winter\User\Tests;
1+
<?php
2+
3+
namespace Winter\User\Tests;
24

35
use App;
46
use Illuminate\Foundation\AliasLoader;
57
use Winter\User\Models\Settings;
68

7-
abstract class UserPluginTestCase extends \PluginTestCase
9+
if (class_exists('System\Tests\Bootstrap\PluginTestCase')) {
10+
class BaseTestCase extends \System\Tests\Bootstrap\PluginTestCase
11+
{
12+
}
13+
} else {
14+
class BaseTestCase extends \PluginTestCase
15+
{
16+
}
17+
}
18+
19+
abstract class UserPluginTestCase extends BaseTestCase
820
{
921
/**
1022
* @var array Plugins to refresh between tests.

0 commit comments

Comments
 (0)