Created
September 18, 2014 10:57
-
-
Save michaellouieloria/0785f636985477c8da7e to your computer and use it in GitHub Desktop.
Testing in Laravel which needs Sentry authentication
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
public function setUp() | |
{ | |
parent::setUp(); | |
$user = Sentry::getUserProvider()->findById(1); | |
Sentry::login($user); | |
} | |
public function tearDown() | |
{ | |
Sentry::logout(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment