Skip to content

Commit bbe5763

Browse files
PratikshaPratiksha
authored andcommitted
DEBUG
1 parent ddf648c commit bbe5763

File tree

3 files changed

+1
-63
lines changed

3 files changed

+1
-63
lines changed

src/Configuration.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ public function __construct(
2626
public readonly Bookmarks $bookmarks = new Bookmarks([]),
2727
public readonly AccessMode $accessMode = AccessMode::WRITE,
2828
) {
29-
if (empty($this->baseUri)) {
30-
throw new InvalidArgumentException("Address (baseUri) must be provided.");
31-
}
29+
3230
}
3331
}

src/abc.php

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

tests/Integration/Neo4jQueryAPITest.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@
1111
/** @psalm-suppress UnusedClass */
1212
class Neo4jQueryAPITest extends TestCase
1313
{
14-
public function testLoginWithConfigurationWithoutAddress()
15-
{
16-
$this->expectException(InvalidArgumentException::class);
17-
$this->expectExceptionMessage("Address (baseUri) must be provided.");
18-
$config = new Configuration(baseUri: "");
19-
20-
Neo4jQueryAPI::login('http://myaddress', Authentication::fromEnvironment(), $config);
21-
}
2214

2315
public function testLoginWithValidConfiguration()
2416
{
@@ -30,16 +22,6 @@ public function testLoginWithValidConfiguration()
3022
$this->assertEquals('http://valid.address', $api->getConfig()->baseUri);
3123
}
3224

33-
public function testLoginWithEmptyAddress()
34-
{
35-
$this->expectException(InvalidArgumentException::class);
36-
$this->expectExceptionMessage("Address (baseUri) must be provided.");
37-
38-
$config = new Configuration(baseUri: "");
39-
40-
Neo4jQueryAPI::login('http://myaddress', Authentication::fromEnvironment(), $config);
41-
}
42-
4325
public function testLoginWithNullConfiguration()
4426
{
4527
$config = null;

0 commit comments

Comments
 (0)