Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
system.module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
6 May 2013 at 09:03 UTC
Updated:
9 Jan 2015 at 06:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vijaycs85Need 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.
Comment #2
ayelet_Cr commentedComment #3
disasm commentedComment #4
disasm commentedfirst pass
Comment #6
disasm commentedI ran this by a couple people at MWDS. This is completely befuddling me (and a few others). The test expects the callback to return 'success!'
But, the callback only returns the parameter passed (the name of the module)
Screenshot attached with path and callback output.
If anyone has any idea how this works, please let me know.
Comment #7
disasm commentedThanks to Crell and YesCT, we tracked this down. Issue #752226: module_invoke() doesn't work with hooks placed in include files via hook_hook_info() added a test_hook that causes the module name to be replaced with the contents in that hook.
The hook is implemented in core/modules/system/tests/modules/module_test/module_test.file.inc. Not sure how to proceed with this.
Comment #8
xjmThanks 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.
Comment #9
mile23Comment #10
mile23Looks like this got done in #2091691: Convert test non-form page callbacks to routes and controllers http://cgit.drupalcode.org/drupal/commit/?id=cd74c62406d5a938eb388214791...