Skip to content

Commit 7bd0fec

Browse files
committed
register PestPluginHttpRecorder
- if the service is running in the console
1 parent 04ca44a commit 7bd0fec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/LaravelNotionApiServiceProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace FiveamCode\LaravelNotionApi;
44

55
use Illuminate\Support\ServiceProvider;
6+
use FiveamCode\LaravelNotionApi\Tests\Plugins\PestPluginHttpRecorder;
67

78
/**
89
* Class LaravelNotionApiServiceProvider.
@@ -32,5 +33,9 @@ public function register()
3233
$this->app->singleton(Notion::class, function () {
3334
return new Notion(config('laravel-notion-api.notion-api-token'), config('laravel-notion-api.version'));
3435
});
36+
37+
if ($this->app->runningInConsole()) {
38+
PestPluginHttpRecorder::register();
39+
}
3540
}
3641
}

0 commit comments

Comments
 (0)