Skip to content

Commit 936fe50

Browse files
committed
optimized test classes
1 parent 69d305d commit 936fe50

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

tests/NotionApiTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace FiveamCode\LaravelNotionApi\Tests;
44

5+
use FiveamCode\LaravelNotionApi\Notion;
56
use Orchestra\Testbench\TestCase;
67

78
/**
@@ -25,4 +26,15 @@ protected function getPackageAliases($app)
2526
'Notion' => \FiveamCode\LaravelNotionApi\NotionFacade::class
2627
];
2728
}
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+
}
2840
}

tests/NotionTest.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)