Skip to content

Commit

Permalink
Added test for connection to aura
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanak-michal authored Jul 6, 2022
1 parent 4bfa824 commit 209d0e7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/BoltTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,29 @@ public function testSockets()
$this->markTestIncomplete($e->getMessage());
}
}

public function testAura()
{
try {
$conn = new \Bolt\connection\StreamSocket('demo.neo4jlabs.com');
$conn->setSslContextOptions([
'verify_peer' => true
]);
$this->assertInstanceOf(\Bolt\connection\StreamSocket::class, $conn);

$bolt = new Bolt($conn);
$this->assertInstanceOf(Bolt::class, $bolt);

$protocol = $bolt->build();
$this->assertInstanceOf(AProtocol::class, $protocol);

$this->assertIsArray($protocol->hello(\Bolt\helpers\Auth::basic('movies', 'movies')));

$protocol->goodbye();
} catch (Exception $e) {
$this->markTestIncomplete($e->getMessage());
}
}

/**
* @return AProtocol
Expand Down

0 comments on commit 209d0e7

Please sign in to comment.