Skip to content

Commit d6515f5

Browse files
committed
fix failed test after change in ArangoDB:devel
1 parent f75aadd commit d6515f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/EdgeExtendedTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function testGetReplaceUpdateAndRemoveOnNonExistentObjects()
101101
// don't bother us... just give us the $e
102102
}
103103
static::assertInstanceOf(ServerException::class, $e);
104-
static::assertEquals(404, $e->getCode(), 'Should be 404, instead got: ' . $e->getCode());
104+
static::assertEquals(403, $e->getCode(), 'Should be 403, instead got: ' . $e->getCode());
105105

106106

107107
// Try to update a non-existent edge
@@ -113,7 +113,7 @@ public function testGetReplaceUpdateAndRemoveOnNonExistentObjects()
113113
// don't bother us... just give us the $e
114114
}
115115
static::assertInstanceOf(ServerException::class, $e);
116-
static::assertEquals(404, $e->getCode(), 'Should be 404, instead got: ' . $e->getCode());
116+
static::assertEquals(403, $e->getCode(), 'Should be 403, instead got: ' . $e->getCode());
117117

118118

119119
// Try to replace a non-existent edge
@@ -125,7 +125,7 @@ public function testGetReplaceUpdateAndRemoveOnNonExistentObjects()
125125
// don't bother us... just give us the $e
126126
}
127127
static::assertInstanceOf(ServerException::class, $e);
128-
static::assertEquals(404, $e->getCode(), 'Should be 404, instead got: ' . $e->getCode());
128+
static::assertEquals(403, $e->getCode(), 'Should be 403, instead got: ' . $e->getCode());
129129

130130

131131
// Try to remove a non-existent edge
@@ -137,7 +137,7 @@ public function testGetReplaceUpdateAndRemoveOnNonExistentObjects()
137137
// don't bother us... just give us the $e
138138
}
139139
static::assertInstanceOf(ServerException::class, $e);
140-
static::assertEquals(404, $e->getCode(), 'Should be 404, instead got: ' . $e->getCode());
140+
static::assertEquals(403, $e->getCode(), 'Should be 403, instead got: ' . $e->getCode());
141141
}
142142

143143

0 commit comments

Comments
 (0)