Skip to content

Commit 27bba08

Browse files
committed
Some minor corrections to tests
1 parent eaf1873 commit 27bba08

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/GraphExtendedTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,10 @@ public function testSaveVerticesAndEdgeBetweenThemAndRemoveFirstVertexFirst()
342342

343343

344344
// Try to get the edge using GraphHandler
345-
// This should return true
345+
// This should cause an exception with a code of 404
346346
try {
347347
$e = null;
348-
$resultE = $this->graphHandler->getEdge($this->graphName, $this->edge1Name);
349-
$this->assertTrue($resultE, 'Did not return true!');
348+
$this->graphHandler->getEdge($this->graphName, $this->edge1Name);
350349
} catch (\Exception $e) {
351350
// don't bother us... just give us the $e
352351
}
@@ -443,11 +442,10 @@ public function testGetReplaceUpdateAndRemoveOnNonExistentObjects()
443442

444443

445444
// Try to get the edge using GraphHandler
446-
// This should return true
445+
// This should cause an exception with a code of 404
447446
try {
448447
$e = null;
449-
$resultE = $this->graphHandler->getEdge($this->graphName, $this->edge1Name);
450-
$this->assertTrue($resultE, 'Did not return true!');
448+
$this->graphHandler->getEdge($this->graphName, $this->edge1Name);
451449
} catch (\Exception $e) {
452450
// don't bother us... just give us the $e
453451
}

0 commit comments

Comments
 (0)