Part of #1971384: [META] Convert page callbacks to controllers

For instructions on how to convert a page callback into a controller, see the WSCCI Conversion Guide.

Files: 
CommentFileSizeAuthor
#10 wscci-1987804-10.patch2.73 KBdawehner
PASSED: [[SimpleTest]]: [MySQL] 59,283 pass(es).
[ View ]
#10 interdiff.txt825 bytesdawehner
#9 drupal8.plugin_test.1987804-9.patch2.72 KBdisasm
PASSED: [[SimpleTest]]: [MySQL] 59,126 pass(es).
[ View ]
#9 interdiff.txt1.48 KBdisasm
#6 drupal8.plugin_test.1987804-6.patch2.66 KBdisasm
PASSED: [[SimpleTest]]: [MySQL] 58,158 pass(es).
[ View ]

Comments

Status:Active» Closed (won't fix)

Need to rewrite the whole module to make test sync with current test implementation. For more details, please refer: #1988802: [META] Rewrite test modules in system to provide better unit testing.

Status:Closed (won't fix)» Active

Assigned:Unassigned» Sean Buscay

Assigned:Sean Buscay» Unassigned

Erroneously assigned.

Assigned:Unassigned» disasm

Status:Active» Needs review
StatusFileSize
new2.66 KB
PASSED: [[SimpleTest]]: [MySQL] 58,158 pass(es).
[ View ]

attached patch converts plugin_test_definition callback.

Thanks for your work on this issue! Please see #1971384-43: [META] Convert page callbacks to controllers for an update on the routing system conversion process.

Status:Needs review» Needs work
  1. +++ b/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Controller/PluginTest.php
    @@ -0,0 +1,32 @@
    +  function testDefinitions() {

    Let's make that public

  2. +++ b/core/modules/system/tests/modules/plugin_test/lib/Drupal/plugin_test/Controller/PluginTest.php
    @@ -0,0 +1,32 @@
    +    foreach($manager->getDefinitions() as $plugin_id => $definition) {

    There should be a space after the foreach.

  3. +++ b/core/modules/system/tests/modules/plugin_test/plugin_test.module
    @@ -24,24 +22,7 @@ function plugin_test_menu() {
         'access callback' => TRUE,

    No need to keep access callback on there.

Status:Needs work» Needs review
StatusFileSize
new1.48 KB
new2.72 KB
PASSED: [[SimpleTest]]: [MySQL] 59,126 pass(es).
[ View ]

Status:Needs review» Reviewed & tested by the community
StatusFileSize
new825 bytes
new2.73 KB
PASSED: [[SimpleTest]]: [MySQL] 59,283 pass(es).
[ View ]

Just fixing some docs and empty lines.

Status:Reviewed & tested by the community» Fixed

Committed and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.