File tree Expand file tree Collapse file tree 3 files changed +1
-63
lines changed Expand file tree Collapse file tree 3 files changed +1
-63
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ public function __construct(
26
26
public readonly Bookmarks $ bookmarks = new Bookmarks ([]),
27
27
public readonly AccessMode $ accessMode = AccessMode::WRITE ,
28
28
) {
29
- if (empty ($ this ->baseUri )) {
30
- throw new InvalidArgumentException ("Address (baseUri) must be provided. " );
31
- }
29
+
32
30
}
33
31
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
/** @psalm-suppress UnusedClass */
12
12
class Neo4jQueryAPITest extends TestCase
13
13
{
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
- }
22
14
23
15
public function testLoginWithValidConfiguration ()
24
16
{
@@ -30,16 +22,6 @@ public function testLoginWithValidConfiguration()
30
22
$ this ->assertEquals ('http://valid.address ' , $ api ->getConfig ()->baseUri );
31
23
}
32
24
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
-
43
25
public function testLoginWithNullConfiguration ()
44
26
{
45
27
$ config = null ;
You can’t perform that action at this time.
0 commit comments