@@ -41,17 +41,11 @@ final class ClientIntegrationTest extends EnvironmentAwareIntegrationTest
4141{
4242 public function testDriverAuthFailureVerifyConnectivity (): void
4343 {
44- $ connection = $ _ENV ['CONNECTION ' ] ?? false ;
45- if (str_starts_with ((string ) $ connection , 'http ' )) {
44+ if (str_starts_with ($ this ->uri ->getScheme (), 'http ' )) {
4645 $ this ->markTestSkipped ('HTTP does not support auth failure connectivity passing ' );
4746 }
4847
49- if (!is_string ($ connection )) {
50- $ connection = 'bolt://neo4j ' ;
51- }
52-
53- $ uri = Uri::create ($ connection );
54- $ uri = $ uri ->withUserInfo ('neo4j ' , 'absolutelyonehundredpercentawrongpassword ' );
48+ $ uri = $ this ->uri ->withUserInfo ('neo4j ' , 'absolutelyonehundredpercentawrongpassword ' );
5549
5650 /** @noinspection PhpUnhandledExceptionInspection */
5751 $ conf = DriverConfiguration::default ()->withLogger (LogLevel::DEBUG , $ this ->createMock (LoggerInterface::class));
@@ -71,17 +65,11 @@ public function testDriverAuthFailureVerifyConnectivity(): void
7165
7266 public function testClientAuthFailureVerifyConnectivity (): void
7367 {
74- $ connection = $ _ENV ['CONNECTION ' ] ?? false ;
75- if (str_starts_with ((string ) $ connection , 'http ' )) {
68+ if (str_starts_with ($ this ->uri ->getScheme (), 'http ' )) {
7669 $ this ->markTestSkipped ('HTTP does not support auth failure connectivity passing ' );
7770 }
7871
79- if (!is_string ($ connection )) {
80- $ connection = 'bolt://localhost ' ;
81- }
82-
83- $ uri = Uri::create ($ connection );
84- $ uri = $ uri ->withUserInfo ('neo4j ' , 'absolutelyonehundredpercentawrongpassword ' );
72+ $ uri = $ this ->uri ->withUserInfo ('neo4j ' , 'absolutelyonehundredpercentawrongpassword ' );
8573
8674 /** @noinspection PhpUnhandledExceptionInspection */
8775 $ conf = DriverConfiguration::default ()->withLogger (LogLevel::DEBUG , $ this ->createMock (LoggerInterface::class));
0 commit comments