fix tests
This commit is contained in:
@@ -20,7 +20,7 @@ class ApiHttpSemanticsAndMethodSafetyContractTest extends FullSurfaceE2EContract
|
||||
]);
|
||||
|
||||
$this->assertControlled($response, 'GET', $uri);
|
||||
$this->assertNoServerError($response, 'GET with mutating-looking query at ' . $uri);
|
||||
$this->assertNoServerError($response, 'GET with mutating-looking query at '.$uri);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,8 +35,8 @@ class ApiHttpSemanticsAndMethodSafetyContractTest extends FullSurfaceE2EContract
|
||||
|
||||
$response = $this->actingAs($this->actorFor($uri), 'api')->json($wrong, $this->materializePath($uri), $this->payloadFor($wrong, $uri));
|
||||
|
||||
$this->assertStatusIn($response, [200, 201, 202, 204, 302, 400, 401, 403, 404, 405, 409, 419, 422], $wrong . ' ' . $uri);
|
||||
$this->assertNoServerError($response, 'wrong method probe ' . $wrong . ' ' . $uri);
|
||||
$this->assertStatusIn($response, [200, 201, 202, 204, 302, 400, 401, 403, 404, 405, 409, 419, 422], $wrong.' '.$uri);
|
||||
$this->assertNoServerError($response, 'wrong method probe '.$wrong.' '.$uri);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ class ApiHttpSemanticsAndMethodSafetyContractTest extends FullSurfaceE2EContract
|
||||
$response = $this->actingAs($this->actorFor($uri), 'api')->deleteJson($this->materializePath($uri));
|
||||
|
||||
$this->assertControlled($response, 'DELETE', $uri);
|
||||
$this->assertNoServerError($response, 'bodyless delete at ' . $uri);
|
||||
$this->assertNoServerError($response, 'bodyless delete at '.$uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user