Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 17, 2022
1 parent 73c6786 commit f5ef744
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
8 changes: 2 additions & 6 deletions src/IgnitionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,7 @@ public function boot()
$this->configureTinker();
$this->configureOctane();
$this->registerViewExceptionMapper();

if ($this->app->runningInConsole()) {
$this->registerRoutes();
}

$this->registerRoutes();
$this->registerLogHandler();
$this->startRecorders();
$this->configureQueue();
Expand Down Expand Up @@ -205,7 +201,7 @@ protected function registerViewExceptionMapper(): void
});
}

public function registerRoutes(): void
protected function registerRoutes(): void
{
Route::group([
'as' => 'ignition.',
Expand Down
2 changes: 0 additions & 2 deletions tests/Http/Controllers/ExecuteSolutionControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php

it('can execute solutions on a local environment with debugging enabled', function () {
registerRoutes();

app()['env'] = 'local';
config()->set('app.debug', true);

Expand Down
5 changes: 0 additions & 5 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
use Spatie\LaravelIgnition\Tests\TestCase;

uses(TestCase::class)->in(__DIR__);

function registerRoutes()
{
test()->registerRoutes();
}
5 changes: 0 additions & 5 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,4 @@ public function createRequest($method, $uri, $parameters = [], $cookies = [], $f

return Request::createFromBase($symfonyRequest);
}

public function registerRoutes()
{
(new IgnitionServiceProvider($this->app))->registerRoutes();
}
}

0 comments on commit f5ef744

Please sign in to comment.