Skip to content

Commit

Permalink
Disable pulse in Unit Test
Browse files Browse the repository at this point in the history
  • Loading branch information
digitlimit committed Mar 20, 2024
1 parent 01f739d commit 6834e87
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Schema;
use Laravel\Pulse\Support\PulseMigration;

Expand All @@ -11,7 +12,7 @@
*/
public function up(): void
{
if (! $this->shouldRun()) {
if (! $this->shouldRun() || ! Config::get('pulse.enabled')) {
return;
}

Expand Down Expand Up @@ -77,6 +78,10 @@ public function up(): void
*/
public function down(): void
{
if (! $this->shouldRun() || ! Config::get('pulse.enabled')) {
return;
}

Schema::dropIfExists('pulse_values');
Schema::dropIfExists('pulse_entries');
Schema::dropIfExists('pulse_aggregates');
Expand Down

0 comments on commit 6834e87

Please sign in to comment.