210 lines
4.4 KiB
YAML
210 lines
4.4 KiB
YAML
|
name: AssertsStatusCodes
|
||
|
class_comment: null
|
||
|
dependencies:
|
||
|
- name: PHPUnit
|
||
|
type: class
|
||
|
source: Illuminate\Testing\Assert
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: assertOk
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 200 "OK" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertCreated
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 201 "Created" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertAccepted
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 202 "Accepted" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertNoContent
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: status
|
||
|
default: '204'
|
||
|
comment: '# * Assert that the response has the given status code and no content.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param int $status
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertMovedPermanently
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 301 "Moved Permanently" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertFound
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 302 "Found" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertNotModified
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 304 "Not Modified" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertTemporaryRedirect
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 307 "Temporary Redirect" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertPermanentRedirect
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 308 "Permanent Redirect" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertBadRequest
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 400 "Bad Request" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertUnauthorized
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 401 "Unauthorized" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertPaymentRequired
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 402 "Payment Required" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertForbidden
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 403 "Forbidden" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertNotFound
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 404 "Not Found" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertMethodNotAllowed
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 405 "Method Not Allowed" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertNotAcceptable
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 406 "Not Acceptable" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertRequestTimeout
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 408 "Request Timeout" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertConflict
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 409 "Conflict" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertGone
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 410 "Gone" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertUnsupportedMediaType
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 415 "Unsupported Media Type" status
|
||
|
code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertUnprocessable
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 422 "Unprocessable Content" status
|
||
|
code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertTooManyRequests
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 429 "Too Many Requests" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertInternalServerError
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 500 "Internal Server Error" status
|
||
|
code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
- name: assertServiceUnavailable
|
||
|
visibility: public
|
||
|
parameters: []
|
||
|
comment: '# * Assert that the response has a 503 "Service Unavailable" status code.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @return $this'
|
||
|
traits: []
|
||
|
interfaces: []
|