From e1c4dc8934903daa824703836acb45417f945ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 27 Feb 2019 22:22:09 +0100 Subject: [PATCH] Register the facade in TestCase --- tests/FacadeTest.php | 2 +- tests/TestCase.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/FacadeTest.php b/tests/FacadeTest.php index f4ed16be..a218f0dd 100644 --- a/tests/FacadeTest.php +++ b/tests/FacadeTest.php @@ -2,7 +2,7 @@ namespace Stancl\Tenancy\Tests; -use Stancl\Tenancy\TenancyFacade as Tenancy; +use Tenancy; class FacadeTest extends TestCase { diff --git a/tests/TestCase.php b/tests/TestCase.php index bf7afc45..a802367c 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -89,6 +89,13 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase return [\Stancl\Tenancy\TenancyServiceProvider::class]; } + protected function getPackageAliases($app) + { + return [ + 'Tenancy' => \Stancl\Tenancy\TenancyFacade::class + ]; + } + /** * Resolve application HTTP Kernel implementation. *