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 bd57daa commit 142d84cCopy full SHA for 142d84c
tests/Pest.php
@@ -4,8 +4,11 @@
4
use FiveamCode\LaravelNotionApi\Tests\NotionApiTest;
5
use Illuminate\Support\Facades\Config;
6
7
+// uses(NotionApiTest::class)->in(__DIR__);
8
uses(NotionApiTest::class)->beforeEach(function () {
- $dotenv = Dotenv::createImmutable(__DIR__.'/..', '.env.testing');
9
- $dotenv->load();
10
- Config::set('laravel-notion-api.notion-api-token', env('NOTION_API_TOKEN'));
+ if (file_exists(__DIR__ . '/../.env.testing')) {
+ $dotenv = Dotenv::createImmutable(__DIR__ . '/..', '.env.testing');
11
+ $dotenv->load();
12
+ }
13
+ Config::set('laravel-notion-api.notion-api-token', env('NOTION_API_TOKEN', ''));
14
})->in(__DIR__);
0 commit comments