- Issue created by @fgm
- 🇳🇱Netherlands megachriz
I see. It got deprecated in Drupal 9.4.0 and it is removed from Drupal 11.0.0.
So the function still exists in Drupal 10, so that's why it wasn't catched by tests, I think.
- 🇳🇱Netherlands megachriz
When we remove the usage of
module_load_include()
we also need change "core_version_requirement" in xmlrpc.info.yml and xmlrpc_example.info.yml to:core_version_requirement: ^9.4 || ^10
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 12:47pm 7 July 2023 - last update
over 1 year ago 28 pass - last update
over 1 year ago 28 pass - 🇫🇷France fgm Paris, France
Good catch. Now that D8 is EOL we can remove it.
- 🇳🇱Netherlands megachriz
-
+++ b/tests/src/Functional/XmlRpcBasicTest.php @@ -88,7 +88,7 @@ class XmlRpcBasicTest extends XmlRpcTestBase { + $this->mh->loadInclude('xmlrpc', 'inc'); +++ b/tests/src/Functional/XmlRpcMessagesTest.php @@ -90,7 +90,7 @@ class XmlRpcMessagesTest extends XmlRpcTestBase { + $this->mh->loadInclude('xmlrpc', 'inc'); +++ b/tests/src/Functional/XmlRpcTestBase.php @@ -16,13 +17,25 @@ abstract class XmlRpcTestBase extends BrowserTestBase { + protected ModuleHandlerInterface $mh; ... + $this->mh = $this->container->get('module_handler');
Instead of calling the variable 'mh', I would call it 'moduleHandler'. That's more descriptive.
-
+++ b/tests/src/Functional/XmlRpcTestBase.php @@ -16,13 +17,25 @@ abstract class XmlRpcTestBase extends BrowserTestBase { + public function setUp(): void {
Missing docblock.
-
- 🇳🇱Netherlands megachriz
I'm not sure what "TODO: Change the autogenerated stub" means.
- last update
over 1 year ago 28 pass - 🇫🇷France fgm Paris, France
"Instead of calling the variable 'mh', I would call it 'moduleHandle": I've been doing too much Go, I guess ;-)
- last update
over 1 year ago 28 pass - 🇫🇷France fgm Paris, France
"stub" : Forgot to remove it. It's added automatically by phpstorm when creating a method on a class where it exists on the parent.
- 🇳🇱Netherlands megachriz
Now only xmlrpc_example.info.yml needs to have the core_version_requirement changed as well.
- 🇫🇷France fgm Paris, France
Shouldn't the package for xmlrpc_example be xmlrpc ? The current "example modules" seems related to its previous life in the examples project.
- 🇳🇱Netherlands megachriz
I don't know what the package should be. But the package of the xmlrpc module is "Web services", so changing the package of xmlrpc_example to "xmlrpc" doesn't improve things I think.
Anyway, it looks to be out of scope for this issue.
- last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago 28 pass - last update
over 1 year ago 28 pass - last update
about 1 year ago 28 pass - @fgm opened merge request.
- Status changed to Fixed
about 1 year ago 2:06pm 5 October 2023 - 🇫🇷France fgm Paris, France
Three months later, assuming it's good. Tests pass, static analysis is not worse, so merged to current HEAD, thanks for the reviews.
Automatically closed - issue fixed for 2 weeks with no activity.