Verified Commit b7e4f745 authored by Andrei Mateescu's avatar Andrei Mateescu
Browse files

task: #3575324 Add return type documentation to ResourceTestBase

By: longwave
By: borisson_
By: mondrake
By: mstrelan
parent 5f59e9f2
Loading
Loading
Loading
Loading
Loading
+56 −1502

File changed.

Preview size limit exceeded, changes collapsed.

+15 −0
Original line number Diff line number Diff line
@@ -216,6 +216,9 @@ protected function getExpectedUnauthorizedAccessMessage($method) {
   * @param string $method
   *   The HTTP method for which to set up authentication.
   *
   * @return void
   *   Returns nothing.
   *
   * @see ::grantPermissionsToAnonymousRole()
   * @see ::grantPermissionsToAuthenticatedRole()
   */
@@ -228,6 +231,9 @@ abstract protected function setUpAuthorization($method);
   *   HTTP method.
   * @param \Psr\Http\Message\ResponseInterface $response
   *   The response to assert.
   *
   * @return void
   *   Returns nothing.
   */
  abstract protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response);

@@ -243,6 +249,9 @@ abstract protected function assertResponseWhenMissingAuthentication($method, Res
   * @param array $request_options
   *   Request options to apply.
   *
   * @return void
   *   Returns nothing.
   *
   * @see \GuzzleHttp\ClientInterface::request()
   */
  abstract protected function assertNormalizationEdgeCases($method, Url $url, array $request_options);
@@ -259,6 +268,9 @@ abstract protected function assertNormalizationEdgeCases($method, Url $url, arra
   * @param array $request_options
   *   Request options to apply.
   *
   * @return void
   *   Returns nothing.
   *
   * @see \GuzzleHttp\ClientInterface::request()
   */
  abstract protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options);
@@ -275,6 +287,9 @@ abstract protected function getExpectedUnauthorizedAccessCacheability();
   * Initializes authentication.
   *
   * E.g. for cookie authentication, we first need to get a cookie.
   *
   * @return void
   *   Returns nothing.
   */
  protected function initAuthentication() {}