Set the micropub token in a testing enviro

This commit is contained in:
Jonny Barnes 2016-12-08 15:52:26 +00:00
parent 2c89de7043
commit cd324f72d5

View file

@ -48,7 +48,7 @@ class AppServiceProvider extends ServiceProvider
});
//allow micropub use in development
if (env('APP_DEBUG') == true) {
if (env('APP_DEBUG') == true || env('APP_ENV') == 'testing') {
session(['me' => env('APP_URL')]);
if (Storage::exists('dev-token')) {
session(['token' => Storage::get('dev-token')]);