Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Mar 2014 at 11:48 UTC
Updated:
29 Jul 2014 at 23:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alexpottIf we set the profilesDirectory property to an empty array on the ExtensionListing object then it will scan all profiles.
Comment #2
sunWell-spotted! The added test assertion looks sufficient and good to me.
I already questioned this when I studied the code in the
ExtensionDiscoverypatch. But somehow, the previously existing code in HEAD was usingdrupal_system_listing()— whereas that was a wrapper aroundSystemListingInfo, which operated on the current list of installation profiles only.In other words, the
ExtensionDiscoverypatch performed a straight conversion of the existing test discovery code in simpletest.module. Looks like some other patch wrongly changed that code to useSystemListingInfoin the past already.Comment #5
alexpottSo it looks like we have competing expectations.
OtherInstallationProfileModuleTestsTestis testing that tests in unused installation profiles are not available. I think this expectation is incorrect. We should be able to run all available tests.The attached patch refactors
OtherInstallationProfileModuleTestsTestto meet this expectation and renames itOtherInstallationProfileTestsTest.Comment #6
sunHm, you're (at least consistently) using the term "uninstalled" in these comments, but the "install/uninstall" terminology does not really mesh so well with installation profiles.
In simpletest.module, let's change the wording to this:
"Ensure that tests in all profiles are discovered."
In the test, let's change the wording to this:
"Assert the existence of a test in a different installation profile than the current."
(or shorter, if you find a way to shorten it)
Comment #7
alexpottMakes sense.
Comment #8
sunThanks!
Comment #9
catchCommitted/pushed to 8.x, thanks!