Skip to content

Commit fd73d83

Browse files
authored
Apply fixes from StyleCI (#84)
1 parent 7c12a43 commit fd73d83

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

tests/EndpointDatabaseTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
* @see https://www.notion.so/8284f3ff77e24d4a939d19459e4d6bdc?v=bc3a9ce8cdb84d3faefc9ae490136ac2
2626
* @see https://developers.notion.com/reference/post-database-query
2727
*/
28-
2928
it('returns a database endpoint instance', function () {
3029

3130
// TODO make tests work again, update for new Filter behaviour
@@ -121,7 +120,6 @@
121120
$this->assertCount(0, $resultCollection);
122121
});
123122

124-
125123
it('throws a notion exception for a bad request', function () {
126124

127125
// failing /v1/databases
@@ -139,9 +137,8 @@
139137
Notion::database('8284f3ff77e24d4a939d19459e4d6bdc')->query();
140138
});
141139

142-
143140
it('queries a database with and without offset and processes result', function () {
144-
// success /v1/databases/DATABASE_DOES_EXIST/query
141+
// success /v1/databases/DATABASE_DOES_EXIST/query
145142
Http::fake([
146143
'https://api.notion.com/v1/databases/8284f3ff77e24d4a939d19459e4d6bdc/query*' => Http::sequence()
147144
->push(
@@ -218,4 +215,3 @@
218215
$page = $resultCollection->first();
219216
$this->assertEquals(0, $page->getProperty('Rollup')->getContent()->count());
220217
});
221-

tests/TestCase.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace FiveamCode\LaravelNotionApi\Tests;
44

5+
use FiveamCode\LaravelNotionApi\LaravelNotionApiServiceProvider;
56
use Illuminate\Database\Eloquent\Factories\Factory;
67
use Orchestra\Testbench\TestCase as Orchestra;
7-
use FiveamCode\LaravelNotionApi\LaravelNotionApiServiceProvider;
88

99
class TestCase extends Orchestra
1010
{
@@ -23,6 +23,7 @@ protected function getPackageProviders($app)
2323
LaravelNotionApiServiceProvider::class,
2424
];
2525
}
26+
2627
public function getEnvironmentSetUp($app)
2728
{
2829
config()->set('database.default', 'testing');
@@ -32,4 +33,4 @@ public function getEnvironmentSetUp($app)
3233
$migration->up();
3334
*/
3435
}
35-
}
36+
}

0 commit comments

Comments
 (0)