We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa67de9 commit 8f9d690Copy full SHA for 8f9d690
tests/Pest.php
@@ -1,5 +1,11 @@
1
<?php
2
3
+use Dotenv\Dotenv;
4
use FiveamCode\LaravelNotionApi\Tests\NotionApiTest;
5
+use Illuminate\Support\Facades\Config;
6
-uses(NotionApiTest::class)->in(__DIR__);
7
+uses(NotionApiTest::class)->beforeEach(function () {
8
+ $dotenv = Dotenv::createImmutable(__DIR__ . '/..', '.env.testing');
9
+ $dotenv->load();
10
+ Config::set('laravel-notion-api.notion-api-token', env('NOTION_API_TOKEN'));
11
+})->in(__DIR__);
0 commit comments