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(
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}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111/** @psalm-suppress UnusedClass */
1212class 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 ;
You can’t perform that action at this time.
0 commit comments