Skip to content

Commit 45475ba

Browse files
committed
Set guard for tests
1 parent 24e62c3 commit 45475ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

yii2-adapter/tests/_bootstrap.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
use craft\test\TestSetup;
44
use CraftCms\Yii2Adapter\Tests\TestCase;
5+
use DG\BypassFinals;
6+
use Illuminate\Support\Facades\Config;
57

6-
\DG\BypassFinals::enable();
8+
BypassFinals::enable();
79

810
ini_set('date.timezone', 'UTC');
911
date_default_timezone_set('UTC');
@@ -27,6 +29,8 @@
2729
*/
2830
new TestCase('laravel')->createApplication();
2931

32+
Config::set('auth.defaults.guard', 'craft');
33+
3034
$devMode = true;
3135

3236
$compiledTemplates = CRAFT_STORAGE_PATH . DIRECTORY_SEPARATOR . 'runtime' . DIRECTORY_SEPARATOR . 'compiled_classes';

0 commit comments

Comments
 (0)