system_test.routing.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/system_test/system_test.routing.yml
  2. 10 core/modules/system/tests/modules/system_test/system_test.routing.yml
  3. 11.x core/modules/system/tests/modules/system_test/system_test.routing.yml
core/modules/system/tests/modules/system_test/system_test.routing.yml
3 string references to YAML keys in system_test.routing.yml
DrupalMessengerServiceTest::testDrupalMessengerService in core/modules/system/tests/src/Functional/Bootstrap/DrupalMessengerServiceTest.php
Tests Messenger service.
PageCacheTest::testPageCacheAnonymousRolePermissions in core/modules/page_cache/tests/src/Functional/PageCacheTest.php
Tests the automatic presence of the anonymous role's cache tag.
PageCacheTest::testQueryParameterFormatRequests in core/modules/page_cache/tests/src/Functional/PageCacheTest.php
Tests support for different cache items with different request formats specified via a query parameter.

File

core/modules/system/tests/modules/system_test/system_test.routing.yml

View source
  1. system_test.page_cache_accept_header:
  2. path: '/system-test/page-cache/accept-header'
  3. defaults:
  4. _controller: '\Drupal\system_test\Controller\PageCacheAcceptHeaderController::content'
  5. requirements:
  6. _access: 'TRUE'
  7. system_test.main_content_handling:
  8. path: '/system-test/main-content-handling'
  9. defaults:
  10. _title: 'Test main content handling'
  11. _controller: '\Drupal\system_test\Controller\SystemTestController::mainContentFallback'
  12. requirements:
  13. _access: 'TRUE'
  14. system_test.messenger_service:
  15. path: '/system-test/messenger-service'
  16. defaults:
  17. _title: 'Set messages with Messenger service'
  18. _controller: '\Drupal\system_test\Controller\SystemTestController::messengerServiceTest'
  19. requirements:
  20. _access: 'TRUE'
  21. system_test.main_content_fallback:
  22. path: '/system-test/main-content-fallback'
  23. defaults:
  24. _title: 'Test main content fallback'
  25. _controller: '\Drupal\system_test\Controller\SystemTestController::mainContentFallback'
  26. requirements:
  27. _access: 'TRUE'
  28. system_test.lock_acquire:
  29. path: '/system-test/lock-acquire'
  30. defaults:
  31. _title: 'Lock acquire'
  32. _controller: '\Drupal\system_test\Controller\SystemTestController::lockAcquire'
  33. options:
  34. no_cache: TRUE
  35. requirements:
  36. _access: 'TRUE'
  37. system_test.lock_exit:
  38. path: '/system-test/lock-exit'
  39. defaults:
  40. _title: 'Lock acquire then exit'
  41. _controller: '\Drupal\system_test\Controller\SystemTestController::lockExit'
  42. options:
  43. no_cache: TRUE
  44. requirements:
  45. _access: 'TRUE'
  46. system_test.lock_persist:
  47. path: '/system-test/lock-persist/{lock_name}'
  48. defaults:
  49. _title: 'Persistent lock acquire'
  50. _controller: '\Drupal\system_test\Controller\SystemTestController::lockPersist'
  51. options:
  52. no_cache: TRUE
  53. requirements:
  54. _access: 'TRUE'
  55. system_test.cache_tags_page:
  56. path: '/system-test/cache_tags_page'
  57. defaults:
  58. _controller: '\Drupal\system_test\Controller\SystemTestController::system_test_cache_tags_page'
  59. requirements:
  60. _access: 'TRUE'
  61. system_test.cache_maxage_page:
  62. path: '/system-test/cache_maxage_page'
  63. defaults:
  64. _controller: '\Drupal\system_test\Controller\SystemTestController::system_test_cache_maxage_page'
  65. requirements:
  66. _access: 'TRUE'
  67. system_test.authorize_init:
  68. path: '/system-test/authorize-init/{page_title}'
  69. defaults:
  70. _controller: '\Drupal\system_test\Controller\SystemTestController::authorizeInit'
  71. requirements:
  72. _permission: 'administer software updates'
  73. system_test.set_header:
  74. path: '/system-test/set-header'
  75. defaults:
  76. _controller: '\Drupal\system_test\Controller\SystemTestController::setHeader'
  77. requirements:
  78. _access: 'TRUE'
  79. system_test.shutdown_functions:
  80. path: '/system-test/shutdown-functions/{arg1}/{arg2}'
  81. defaults:
  82. _controller: '\Drupal\system_test\Controller\SystemTestController::shutdownFunctions'
  83. requirements:
  84. _access: 'TRUE'
  85. system_test.configure:
  86. path: '/system-test/configure/{foo}'
  87. defaults:
  88. _title_callback: '\Drupal\system_test\Controller\SystemTestController::configureTitle'
  89. requirements:
  90. _access: 'TRUE'
  91. system_test.request_destination:
  92. path: '/system-test/request-destination'
  93. defaults:
  94. _controller: '\Drupal\system_test\Controller\SystemTestController::requestDestination'
  95. requirements:
  96. _access: 'TRUE'
  97. system_test.get_destination:
  98. path: '/system-test/get-destination'
  99. defaults:
  100. _controller: '\Drupal\system_test\Controller\SystemTestController::getDestination'
  101. requirements:
  102. _access: 'TRUE'
  103. system_test.permission_dependent_content:
  104. path: '/system-test/permission-dependent-content'
  105. defaults:
  106. _controller: '\Drupal\system_test\Controller\SystemTestController::permissionDependentContent'
  107. requirements:
  108. _access: 'TRUE'
  109. system_test.permission_dependent_route_access:
  110. path: '/system-test/permission-dependent-route-access'
  111. defaults:
  112. _controller: '\Drupal\system_test\Controller\SystemTestController::mainContentFallback'
  113. requirements:
  114. _permission: 'pet llamas'
  115. system_test.respond_response:
  116. path: '/system-test/respond-response'
  117. defaults:
  118. _controller: '\Drupal\system_test\Controller\SystemTestController::respondWithResponse'
  119. requirements:
  120. _access: 'TRUE'
  121. system_test.respond_public_response:
  122. path: '/system-test/respond-public-response'
  123. defaults:
  124. _controller: '\Drupal\system_test\Controller\SystemTestController::respondWithPublicResponse'
  125. requirements:
  126. _access: 'TRUE'
  127. system_test.respond_cacheable_response:
  128. path: '/system-test/respond-cacheable-response'
  129. defaults:
  130. _controller: '\Drupal\system_test\Controller\SystemTestController::respondWithCacheableResponse'
  131. requirements:
  132. _access: 'TRUE'
  133. system_test.date:
  134. path: '/system-test/date'
  135. defaults:
  136. _controller: '\Drupal\system_test\Controller\SystemTestController::getCurrentDate'
  137. options:
  138. no_cache: 'TRUE'
  139. requirements:
  140. _access: 'TRUE'
  141. system_test.custom_4xx_with_limited_access:
  142. path: '/system-test/custom-4xx'
  143. defaults:
  144. _title: 'Admin-only 4xx response'
  145. _controller: '\Drupal\system_test\Controller\SystemTestController::mainContentFallback'
  146. requirements:
  147. _role: 'administrator'
  148. system_test.always_denied:
  149. path: '/system-test/always-denied'
  150. defaults:
  151. _title: 'Always denied'
  152. _controller: 'chop'
  153. requirements:
  154. _access: 'FALSE'
  155. system_test.header:
  156. path: '/system-test/header'
  157. defaults:
  158. _controller: '\Drupal\system_test\Controller\SystemTestController::getTestHeader'
  159. requirements:
  160. _access: 'TRUE'
  161. system_test.echo:
  162. path: '/system-test/echo/{text}'
  163. defaults:
  164. _controller: '\Drupal\system_test\Controller\SystemTestController::simpleEcho'
  165. requirements:
  166. _access: 'TRUE'
  167. system_test.echo_utf8:
  168. path: '/system-test/Ȅchȏ/meφΩ/{text}'
  169. defaults:
  170. _controller: '\Drupal\system_test\Controller\SystemTestController::simpleEcho'
  171. requirements:
  172. _access: 'TRUE'
  173. system_test.custom_cache_control:
  174. path: '/system-test/custom-cache-control'
  175. defaults:
  176. _title: 'Cacheable response with custom cache control'
  177. _controller: '\Drupal\system_test\Controller\SystemTestController::getCacheableResponseWithCustomCacheControl'
  178. requirements:
  179. _access: 'TRUE'
  180. system_test.install_profile:
  181. path: '/system-test/get-install-profile'
  182. defaults:
  183. _controller: '\Drupal\system_test\Controller\SystemTestController::getInstallProfile'
  184. requirements:
  185. _access: 'TRUE'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.