Skip to content
Snippets Groups Projects
Commit 4ff7feeb authored by Dillenn Terumalai's avatar Dillenn Terumalai :speech_balloon:
Browse files

Added a check to not register routes if the app is running tests

parent 16087a6f
Branches
Tags v1.0.2
No related merge requests found
Pipeline #2673 passed
......@@ -4,6 +4,7 @@ namespace Dterumal\LaravelInstaller;
use Dterumal\LaravelInstaller\Http\Middleware\CheckInstallation;
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
......@@ -20,7 +21,7 @@ class LaravelInstallerServiceProvider extends ServiceProvider
$this->defineAssetPublishing();
$this->offerPublishing();
$this->registerCommands();
if (!is_app_installed()) {
if (!is_app_installed() && !App::runningUnitTests()) {
$this->registerRoutes();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment