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 69d305d commit 936fe50Copy full SHA for 936fe50
tests/NotionApiTest.php
@@ -2,6 +2,7 @@
2
3
namespace FiveamCode\LaravelNotionApi\Tests;
4
5
+use FiveamCode\LaravelNotionApi\Notion;
6
use Orchestra\Testbench\TestCase;
7
8
/**
@@ -25,4 +26,15 @@ protected function getPackageAliases($app)
25
26
'Notion' => \FiveamCode\LaravelNotionApi\NotionFacade::class
27
];
28
}
29
+
30
31
+ /** @test */
32
+ public function it_returns_notion_instance_with_set_token_and_connection()
33
+ {
34
+ $notion = new Notion("secret_*");
35
+ $notion->v1()->setToken("secret_*");
36
37
+ $this->assertInstanceOf(Notion::class, $notion);
38
+ $this->assertNotEmpty($notion->getConnection());
39
+ }
40
tests/NotionTest.php
0 commit comments