Skip to content

Commit

Permalink
Support tests in v1.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers authored Jul 18, 2024
1 parent 3c377e3 commit 8c46e09
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tests/UserPluginTestCase.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
<?php namespace Winter\User\Tests;
<?php

namespace Winter\User\Tests;

use App;
use Illuminate\Foundation\AliasLoader;
use Winter\User\Models\Settings;

abstract class UserPluginTestCase extends \PluginTestCase
if (class_exists('System\Tests\Bootstrap\PluginTestCase')) {
class BaseTestCase extends \System\Tests\Bootstrap\PluginTestCase
{
}
} else {
class BaseTestCase extends \PluginTestCase
{
}
}

abstract class UserPluginTestCase extends BaseTestCase
{
/**
* @var array Plugins to refresh between tests.
Expand Down

0 comments on commit 8c46e09

Please sign in to comment.