Skip to content

Commit 32ad70e

Browse files
committed
work in progress
1 parent 331f748 commit 32ad70e

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Database Configuration
2+
NEO4J_ADDRESS=https://6f72daa1.databases.neo4j.io/
3+
NEO4J_USERNAME=neo4j
4+
NEO4J_PASSWORD=O9lWmptqBgxBOz8NVcTJjgs3cHPyYmsy63ui6Spmw1d0

src/Neo4jQueryAPI.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public function __construct(Client $client)
3232
public static function login(string $address, string $username, string $password): self
3333
{
3434

35-
3635
$client = new Client([
3736
'base_uri' => rtrim($address, '/'),
3837
'timeout' => 10.0,

tests/Integration/Neo4jQueryAPIIntegrationTest.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
34
namespace Neo4j\QueryAPI\Tests\Integration;
45

56
use GuzzleHttp\Exception\GuzzleException;
@@ -18,26 +19,24 @@ class Neo4jQueryAPIIntegrationTest extends TestCase
1819
{
1920
private Neo4jQueryAPI $api;
2021

21-
2222
/**
2323
* @throws GuzzleException
2424
*/
2525
public function setUp(): void
2626
{
27-
28-
2927
$this->api = $this->initializeApi();
3028

29+
// Clear database and populate test data
3130
$this->clearDatabase();
3231
$this->populateTestData();
3332
}
3433

3534
private function initializeApi(): Neo4jQueryAPI
3635
{
3736
return Neo4jQueryAPI::login(
38-
getenv('NEO4J_ADDRESS') ?: 'https://6f72daa1.databases.neo4j.io/',
39-
getenv('NEO4J_USERNAME') ?: 'neo4j',
40-
getenv('NEO4J_PASSWORD') ?: '9lWmptqBgxBOz8NVcTJjgs3cHPyYmsy63ui6Spmw1d0'
37+
getenv('NEO4J_ADDRESS'),
38+
getenv('NEO4J_USERNAME'),
39+
getenv('NEO4J_PASSWORD')
4140
);
4241
}
4342

@@ -636,11 +635,11 @@ public function testWithNode(): void
636635
'properties' => [
637636
'name' => 'Ayush',
638637
'location' => 'New York',
639-
'age' => '30'
638+
'age' => '30'
640639
],
641-
'labels' => [
642-
0 => 'Person'
643-
]
640+
'labels' => [
641+
0 => 'Person'
642+
]
644643

645644
]
646645
]),

0 commit comments

Comments
 (0)