Skip to content

Commit 209d0e7

Browse files
Added test for connection to aura
1 parent 4bfa824 commit 209d0e7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/BoltTest.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,29 @@ public function testSockets()
6262
$this->markTestIncomplete($e->getMessage());
6363
}
6464
}
65+
66+
public function testAura()
67+
{
68+
try {
69+
$conn = new \Bolt\connection\StreamSocket('demo.neo4jlabs.com');
70+
$conn->setSslContextOptions([
71+
'verify_peer' => true
72+
]);
73+
$this->assertInstanceOf(\Bolt\connection\StreamSocket::class, $conn);
74+
75+
$bolt = new Bolt($conn);
76+
$this->assertInstanceOf(Bolt::class, $bolt);
77+
78+
$protocol = $bolt->build();
79+
$this->assertInstanceOf(AProtocol::class, $protocol);
80+
81+
$this->assertIsArray($protocol->hello(\Bolt\helpers\Auth::basic('movies', 'movies')));
82+
83+
$protocol->goodbye();
84+
} catch (Exception $e) {
85+
$this->markTestIncomplete($e->getMessage());
86+
}
87+
}
6588

6689
/**
6790
* @return AProtocol

0 commit comments

Comments
 (0)