-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from ARCANEDEV/develop
Starting Laravel 8 support
- Loading branch information
Showing
28 changed files
with
47 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
> | ||
> | ||
<testsuites> | ||
<testsuite name="Package Test Suite"> | ||
<directory suffix=".php">./tests/</directory> | ||
<directory suffix=".php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">./src/</directory> | ||
</whitelist> | ||
</filter> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
<report> | ||
<clover outputFile="build/coverage/clover.xml"/> | ||
<html outputDirectory="build/coverage/html"/> | ||
<text outputFile="build/coverage/coverage.txt" showOnlySummary="true"/> | ||
</report> | ||
</coverage> | ||
<php> | ||
<env name="APP_ENV" value="testing"/> | ||
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/> | ||
<env name="DB_CONNECTION" value="testing"/> | ||
<env name="SESSION_DRIVER" value="array"/> | ||
</php> | ||
<logging> | ||
<log type="coverage-clover" target="build/logs/clover.xml"/> | ||
<log type="coverage-text" target="build/logs/coverage.txt"/> | ||
<log type="coverage-html" target="build/logs/coverage"/> | ||
</logging> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,9 @@ | |
use Illuminate\Contracts\Auth\Authenticatable; | ||
|
||
/** | ||
* Interface Impersonatable | ||
* Interface Impersonatable | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface Impersonatable extends Authenticatable | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,9 @@ | |
namespace Arcanedev\LaravelImpersonator\Contracts; | ||
|
||
/** | ||
* Interface Impersonator | ||
* Interface Impersonator | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Contracts | ||
* @author ARCANEDEV <[email protected]> | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
interface Impersonator | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
/** | ||
* Class AbstractImpersonationEvent | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Events | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
abstract class AbstractImpersonationEvent | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class ImpersonationStarted | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Events | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonationStarted extends AbstractImpersonationEvent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,8 @@ | |
namespace Arcanedev\LaravelImpersonator\Events; | ||
|
||
/** | ||
* Class ImpersonationEnded | ||
* Class ImpersonationStopped | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Events | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonationStopped extends AbstractImpersonationEvent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Class ImpersonationException | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Exceptions | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonationException extends Exception | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Class SessionGuard | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Guard | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class SessionGuard extends BaseSessionGuard | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Class ImpersonationNotAllowed | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Http\Middleware | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonationNotAllowed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
/** | ||
* Class Impersonator | ||
* | ||
* @package Arcanedev\LaravelImpersonator | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class Impersonator implements ImpersonatorContract | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
/** | ||
* Class ImpersonatorServiceProvider | ||
* | ||
* @package Arcanedev\LaravelImpersonator | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonatorServiceProvider extends PackageServiceProvider implements DeferrableProvider | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class ImpersonationPolicy | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Policies | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonationPolicy extends Policy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,8 @@ | |
use Illuminate\Database\Eloquent\Model; | ||
|
||
/** | ||
* Trait HasImpersonation | ||
* Trait CanImpersonate | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Traits | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
trait CanImpersonate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class EventsTest | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class EventsTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Class ImpersonationPoliciesTest | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonationPoliciesTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* Class ImpersonationTraitTest | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonationTraitTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ | |
/** | ||
* Class ImpersonatorServiceProviderTest | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonatorServiceProviderTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class ImpersonatorTest | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonatorTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
/** | ||
* Class MiddlewareTest | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class MiddlewareTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
/** | ||
* Class ImpersonationPolicyTest | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests\Policies | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonationPolicyTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
/** | ||
* Class ImpersonatorController | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests\Stubs\Controllers | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class ImpersonatorController extends Controller | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,16 +12,15 @@ | |
/** | ||
* Class User | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests\Stubs\Models | ||
* @author ARCANEDEV <[email protected]> | ||
* | ||
* @property int id | ||
* @property string name | ||
* @property string email | ||
* @property string password | ||
* @property string remember_token | ||
* @property string created_at | ||
* @property \Carbon\Carbon updated_at | ||
* @property int id | ||
* @property string name | ||
* @property string email | ||
* @property string password | ||
* @property string remember_token | ||
* @property \Illuminate\Support\Carbon created_at | ||
* @property \Illuminate\Support\Carbon updated_at | ||
*/ | ||
class User extends Authenticatable implements Impersonatable | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
/** | ||
* Class AuthorizationServiceProvider | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests\Stubs\Providers | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
class AuthorizationServiceProvider extends ServiceProvider | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
/** | ||
* Class TestCase | ||
* | ||
* @package Arcanedev\LaravelImpersonator\Tests | ||
* @author ARCANEDEV <[email protected]> | ||
*/ | ||
abstract class TestCase extends BaseTestCase | ||
|