1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 10:54:04 +00:00

Apply fixes from StyleCI

This commit is contained in:
stancl 2020-05-22 09:01:31 +00:00 committed by StyleCI Bot
parent 1798ca9c85
commit 6955512a6b
133 changed files with 379 additions and 203 deletions

View file

@ -1,14 +1,15 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Tests;
use Illuminate\Support\Facades\Route;
use Stancl\Tenancy\Tests\Etc\Tenant;
use Stancl\Tenancy\Exceptions\RouteIsMissingTenantParameterException;
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedByPathException;
use Stancl\Tenancy\Middleware\InitializeTenancyByPath;
use Stancl\Tenancy\Resolvers\PathTenantResolver;
use Stancl\Tenancy\Tests\TestCase;
use Stancl\Tenancy\Tests\Etc\Tenant;
class PathIdentificationTest extends TestCase
{
@ -73,10 +74,10 @@ class PathIdentificationTest extends TestCase
{
$this->expectException(TenantCouldNotBeIdentifiedByPathException::class);
$this
$this
->withoutExceptionHandling()
->get('/acme/foo/abc/xyz');
$this->assertFalse(tenancy()->initialized);
}
@ -115,7 +116,6 @@ class PathIdentificationTest extends TestCase
->get('/bar/foo/bar');
}
/** @test */
public function tenant_parameter_name_can_be_customized()
{