Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
drupal-check results on commit hash:
source : [git] https://git.drupal.org/project/flag 468d1e0d1ecb7070525ac3924596cb939d825034
source : http://cgit.drupalcode.org/flag
------ -----------------------------------------------------------------------------
Line modules/flag_bookmark/tests/src/FunctionalJavascript/FlagBookmarkUITest.php
------ -----------------------------------------------------------------------------
12 Class
Drupal\Testslag_bookmark\FunctionalJavascript\FlagBookmarkUITest
extends deprecated class
Drupal\FunctionalJavascriptTests\JavascriptTestBase.
29 Call to method setUp() of deprecated class
Drupal\Tests\BrowserTestBase.
59 Call to deprecated method assertText() of class
Drupal\Tests\BrowserTestBase.
105 Call to deprecated method assertNoText() of class
Drupal\Tests\BrowserTestBase.
106 Call to deprecated method assertNoText() of class
Drupal\Tests\BrowserTestBase.
------ -----------------------------------------------------------------------------
------ -------------------------------------------------------------------
Line src/Form/FlagFormBase.php
------ -------------------------------------------------------------------
305 Call to deprecated method urlInfo() of class
Drupal\Core\Entity\EntityInterface.
307 Call to deprecated function drupal_set_message().
308 Call to deprecated method l() of class Drupal\Core\Form\FormBase.
311 Call to deprecated function drupal_set_message().
312 Call to deprecated method l() of class Drupal\Core\Form\FormBase.
------ -------------------------------------------------------------------
------ ---------------------------------------------------
Line src/Form/FlagResetForm.php
------ ---------------------------------------------------
102 Call to deprecated function drupal_set_message().
------ ---------------------------------------------------
------ ----------------------------------------------
Line src/Tests/FlagTestBase.php
------ ----------------------------------------------
157 Call to deprecated function format_string().
172 Call to deprecated function format_string().
------ ----------------------------------------------
------ --------------------------------------------------
Line tests/src/Functional/AnonymousFlagTest.php
------ --------------------------------------------------
79 Call to deprecated method assertEqual() of class
Drupal\Tests\BrowserTestBase.
------ --------------------------------------------------
------ -----------------------------------------------------------
Line tests/src/Functional/ShowOnEntityFormTest.php
------ -----------------------------------------------------------
117 Call to deprecated method assertNoFieldChecked() of class
Drupal\Tests\BrowserTestBase.
143 Call to deprecated method assertNoField() of class
Drupal\Tests\BrowserTestBase.
------ -----------------------------------------------------------
------ -------------------------------------------------------------------
Line tests/src/FunctionalJavascript/AjaxLinkTest.php
------ -------------------------------------------------------------------
20 Class Drupal\Testslag\FunctionalJavascript\AjaxLinkTest extends
deprecated class
Drupal\FunctionalJavascriptTests\JavascriptTestBase.
74 Call to method setUp() of deprecated class
Drupal\Tests\BrowserTestBase.
------ -------------------------------------------------------------------
------ ----------------------------------------------------------------
Line tests/src/FunctionalJavascript/FlagContextualLinksTest.php
------ ----------------------------------------------------------------
20 Class
Drupal\Testslag\FunctionalJavascript\FlagContextualLinksTest
extends deprecated class
Drupal\FunctionalJavascriptTests\JavascriptTestBase.
86 Call to method setUp() of deprecated class
Drupal\Tests\BrowserTestBase.
193 Call to deprecated function format_string().
207 Call to deprecated function format_string().
226 Call to deprecated function format_string().
------ ----------------------------------------------------------------
------ ---------------------------------------------------------------
Line tests/src/FunctionalJavascript/FlagCountExtensionTest.php
------ ---------------------------------------------------------------
14 Class
Drupal\Testslag\FunctionalJavascript\FlagCountExtensionTest
extends deprecated class
Drupal\FunctionalJavascriptTests\JavascriptTestBase.
32 Call to method setUp() of deprecated class
Drupal\Tests\BrowserTestBase.
79 Call to deprecated method assertText() of class
Drupal\Tests\BrowserTestBase.
------ ---------------------------------------------------------------
------ ---------------------------------------------------------------
Line tests/src/FunctionalJavascript/LinkTypeAjaxTest.php
------ ---------------------------------------------------------------
13 Class Drupal\Testslag\FunctionalJavascript\LinkTypeAjaxTest
extends deprecated class
Drupal\FunctionalJavascriptTests\JavascriptTestBase.
61 Call to method setUp() of deprecated class
Drupal\Tests\BrowserTestBase.
------ ---------------------------------------------------------------
------ --------------------------------------------------------------------
Line tests/src/FunctionalJavascript/ModalFormTest.php
------ --------------------------------------------------------------------
14 Class Drupal\Testslag\FunctionalJavascript\ModalFormTest extends
deprecated class
Drupal\FunctionalJavascriptTests\JavascriptTestBase.
62 Call to method setUp() of deprecated class
Drupal\Tests\BrowserTestBase.
------ --------------------------------------------------------------------
------ -------------------------------------------------
Line tests/src/Kernel/FlagActionTest.php
------ -------------------------------------------------
92 Call to deprecated method strtolower() of class
Drupal\Component\Utility\Unicode.
144 Call to deprecated method strtolower() of class
Drupal\Component\Utility\Unicode.
------ -------------------------------------------------
------ --------------------------------------------------
Line tests/src/Kernel/FlagCountsTest.php
------ --------------------------------------------------
169 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
174 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
175 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
180 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
185 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
206 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
208 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
217 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
244 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
246 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
250 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
291 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
293 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
297 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
305 Call to deprecated method assert() of class
Drupal\KernelTests\KernelTestBase.
342 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
345 Call to deprecated method assertEqual() of class
Drupal\KernelTests\KernelTestBase.
353 Call to deprecated method assert() of class
Drupal\KernelTests\KernelTestBase.
------ --------------------------------------------------
------ ------------------------------------------------------------------
Line tests/src/Kernel/FlagKernelTestBase.php
------ ------------------------------------------------------------------
16 Usage of deprecated trait Drupal\simpletest\UserCreationTrait in
class Drupal\Testslag\Kernel\FlagKernelTestBase.
------ ------------------------------------------------------------------
------ ------------------------------------------------------
Line tests/src/Kernel/FlagServiceTest.php
------ ------------------------------------------------------
36 Call to deprecated method assertIdentical() of class
Drupal\KernelTests\KernelTestBase.
76 Call to deprecated method pass() of class
Drupal\KernelTests\KernelTestBase.
91 Call to deprecated method pass() of class
Drupal\KernelTests\KernelTestBase.
108 Call to deprecated method pass() of class
Drupal\KernelTests\KernelTestBase.
116 Call to deprecated method pass() of class
Drupal\KernelTests\KernelTestBase.
127 Call to deprecated method pass() of class
Drupal\KernelTests\KernelTestBase.
136 Call to deprecated method pass() of class
Drupal\KernelTests\KernelTestBase.
151 Call to deprecated method pass() of class
Drupal\KernelTests\KernelTestBase.
159 Call to deprecated method pass() of class
Drupal\KernelTests\KernelTestBase.
166 Call to deprecated method pass() of class
Drupal\KernelTests\KernelTestBase.
------ ------------------------------------------------------
------ ------------------------------------------------------------------
Line tests/src/Kernel/FlaggingStorageTest.php
------ ------------------------------------------------------------------
16 Usage of deprecated trait
Drupal\simpletest\ContentTypeCreationTrait in class
Drupal\Testslag\Kernel\FlaggingStorageTest.
17 Usage of deprecated trait Drupal\simpletest\NodeCreationTrait in
class Drupal\Testslag\Kernel\FlaggingStorageTest.
------ ------------------------------------------------------------------
------ -------------------------------------------------
Line tests/src/Unit/Plugin/Action/FlagActionTest.php
------ -------------------------------------------------
38 Call to deprecated method strtolower() of class
Drupal\Component\Utility\Unicode.
83 Call to deprecated method strtolower() of class
Drupal\Component\Utility\Unicode.
102 Call to deprecated method strtolower() of class
Drupal\Component\Utility\Unicode.
------ -------------------------------------------------
[ERROR] Found 66 errors
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#48 | Drupal9_compatibility-3042758-48.patch | 1000 bytes | meet_bhanvadia |
#43 | interdiff_39-42.txt | 1.61 KB | meet_bhanvadia |
#43 | Drupal9_compatibility-3042758-43.patch | 25.97 KB | meet_bhanvadia |
| |||
#41 | interdiff_33-39.txt | 1.31 KB | meet_bhanvadia |
#41 | interdiff_32-39.txt | 1.3 KB | meet_bhanvadia |
Comments
Comment #2
Sergiu Stici CreditAttribution: Sergiu Stici at FFW commentedHere is the patch, please review.
Comment #3
waverate CreditAttribution: waverate commentedAgainst flag-8.x-4.x-dev (18 Oct 2018) there are still a couple of depreciated function and methods:
Comment #4
Sergiu Stici CreditAttribution: Sergiu Stici at FFW commentedThank you @waverate
Comment #5
waverate CreditAttribution: waverate commentedPatch at #4 works. Thank you @Sergiu Stici.
Comment #6
TR CreditAttribution: TR commentedRemoving the drupal_set_message() usages are the subject of the much older issue #2906147: Replace drupal_set_message . The removal should be handled in that issue, not here. Please remove that part of the patch, including the unneeded injection of the messenger service.
Also, assertEquals() does not have three arguments like assertEqual() did, and the order of the first two arguments is different between these two functions. That should be corrected.
Comment #7
Tolyan4ik CreditAttribution: Tolyan4ik at EPAM Systems commentedPlease review patch
Comment #8
TR CreditAttribution: TR commentedDidn't address #6 ....
Also, you ADDED two new coding standards violations ...
Comment #9
andreyjan CreditAttribution: andreyjan at FFW commentedReverted 'drupal_set_message' change as mentioned in #6 and fixed introduced coding standards violations.
Comment #10
andreyjan CreditAttribution: andreyjan at FFW commentedComment #11
martin107 CreditAttribution: martin107 as a volunteer commentedThank you all for working on this ...
There is a delicate balance about how to accept good changes that are maybe out of scope, and how do we reduce duplicate work.
For example in the sister issue below about refining drupal_set_issue. Is asking should we accept a out of scope change which will cause conflicts in this issue?
https://www.drupal.org/project/flag/issues/2906147#comment-13323942
I think the answer is yes
I think given the smaller number of people submitting patches to the module ...we should error in away that encourages work and accepts patches that have consequences for other issues.
I will give a commitment to pounce on problems - reroll and resolve conflicts with a quick turnaround. An so please contact me if you see something I did not catch.
Comment #12
BerdirThis is an 8.7 deprecation, so we should combine it with a dependency in flag.info.yml:
- drupal:system (>=8.7)
this was now also fixed in the other issue and can be removed.
The thing with these arguments is that in phpunit/AssertLegacyTrait, assertNoRaw()/assertRaw() doesn't even have a second argument anymore. So I'd suggest to just remove that second argument completely. The HTML pretty much speaks for itself I think.
This one I'm not sure. This failing would likely be a bit less readable, but there are also examples in core without a message: \Drupal\Tests\file\FunctionalJavascript\FileFieldWidgetTest::testMultiValuedWidget.
Fine to keep it like this for now.
Comment #13
BerdirAlso, this is missing a few things that drupal-check doesn't see.
* entity.manager usage in \Drupal\flag\Tests\AdminUITest::doFlagChangeWeights
* isSubclassOf() in \Drupal\flag\Plugin\Flag\EntityFlagType::isFlaggableOwnable
And then also that we need to convert the web tests to phpunit, but lets do that in a separate issue.
Comment #14
BerdirComment #15
martin107 CreditAttribution: martin107 as a volunteer commentedRegarding #13
I think we should fix things in isolated semi-quick fix, quick to review side issues.
[converting tests may be a less quick to fix.]
Comment #16
oknateAddressing #12
1. ✅Added dependency on
drupal:system (>=8.7)
2. ✅Rerolled the patch.
3. ✅Removed second argument in each of these.
4. Left alone for now.
Comment #17
oknateAdding a follow-up: #3090414: Fix coding standards
Comment #18
samaphpI applied the patch #16 and there are no errors showing up.
[OK] No errors
Comment #19
samaphpComment #20
BerdirSorry for moving the goalpost, but I've started to instead replace the core definition with core_version_requirement: ^8.7.7 || ^9, then we're basically already ready for D9 already as far as the info.yml file is concerned.
Speaking of that, there is for example the new required $defaultTheme property that we can already add because it doesn't break on 8.7. Similar with the more strict assertTrue() in LinkTypeAjaxTest::testAjaxLink(), note that you can only see that when actually running the test with visible deprecation messages. And there is a separate issue for TrustedCallbackInterface already.
Also needs a reroll it seems.
Comment #21
martin107 CreditAttribution: martin107 as a volunteer commentedAll excellent feedback ...
the ^8.7.7 || ^9 comment accidentally solves a problem ... that has been animating me in another project. thank you.
First things first. I am about to reroll.
Comment #22
martin107 CreditAttribution: martin107 as a volunteer commentedReroll.
Regarding #20 ..This still needs work.
Comment #23
martin107 CreditAttribution: martin107 as a volunteer commentedI am not confident about many of these changes, so I am going to talk through my decisions.
A)
so according to this change record
https://www.drupal.org/node/3085950
stark should be used in favour to classy...
B) Looking at the deprecation warnings from LinkTypeAjaxTest
I changed the 'computed' entity reference in the Flagging entity.
$fields['flagged_entity'] = BaseFieldDefinition::create('entity_reference')
->setLabel(t('Entity'))
->setDescription(t('The flagged entity.'))
- ->setComputed(TRUE);
+ ->setComputed(TRUE)
+ ->setClass(FlaggedEntityFieldItemList::class);
adding a new class FlaggedEntityFieldItemList
There should be only be one entity associated with the individual flagging.
I am really not sure about that .. and it may be additional tests -- but well I should wait for feedback before thinking about that.
Comment #24
Berdirthis needs to be set as core_version_requirement, instead of core, not as a drupal_system dependency. See https://www.drupal.org/node/3070687.
This seems strange.
$this->getEntity() returns the parent flagging entity, but then setting the label as a value of that doesn't make sense.
You can see that this is usually set in \Drupal\flag\Entity\Flagging::onChange() and \Drupal\flag\Entity\Flagging::__construct(). Doing it in the field item list class should replace that logic, so you want to set the value of the entity_id field when it's accessed, not the label.
Comment #25
martin107 CreditAttribution: martin107 as a volunteer commented@bedir thank you for talking constructively about my screw ups ... it is always appreciated.
From #20
#3090426: use TrustedCallbackInterface in FlagLinkBuilder::build
I started both issues... I was intending this issue to be a meta with lots of spin offs
but I don't want to undo all the good work put into this issue/patch. So I am going with the flow and folding
that patch into this one.
#24.1 Opps my mistake.
So we want to be compatible with 8.7.7 onwards ..
I think this is what is required. Note the last point in the CR is that we need a composer.json file.
#24.2
Sorry If I need to talk this over some more...
To put the logic in the Flagging::onChange() in a human relatable form
Conditions
A) When changing the 'entity_id' field also update appropiately the 'flagged_entity' field.
B) Thow expections if this update/onchange operation is set more than once.
I did have a mini design review, on the basis that these fields are inherently linked
so maybe we should create a compound field ( ie follow and adapt this tutorial https://www.lullabot.com/articles/extending-a-field-type-in-drupal-8
) where instead of adding a 'quantity' associated with entity_reference we have logic to enforce the conditions.
But when I looked at it -- what we have already is a consise solution to the problem.
It is just a subltley that we apply the conditions the the level of a ContentEntityType [ Flagging ]
not at a level below where a developer fresh to the project may look first.
When it comes to testing the new class FlaggedEntityFieldItemList .. I want to say it is remarkable that this actually passed.
I mean swapping the label() for something hardcoded to fail like the string 'socks'
is illuminating...
So much so that for this patch I wanted to see how many of our existing tests passed through FlaggedEntityFieldItemList.
So :-
a) I turned on xdebug run
b) ./vendor/bin/phpuinit -c core --coverage-html coverage module/contrib/flagged_entity
c) waited 4 hours .. and produced a static website showing out code coverage. ( single threaded so I didnt lock up my machine )
From a review of the code coverage report I see that testing of thrown expections is systematically missing from the flag module.
I looked first at out services FlagService and CountManager -- we would get 100% if it weren't for that fact.
I will post a code coverage report of the 8.x-4.x branch on github later today for anyone intrested.
[ Side note we also define create() methods inappropately in a couple of classes hampering our code coverage score.
So I spun off a #3096449: Remove FlagCountManager/FlagTypeBase :: create()
]
In short, regarding testing
A) I am happy that out existing tests will cover any future break of the new class before we get to RTBC.
B) I am thinking of adding thrown exception testing in a subsequent issue.
So now onto new changes -- sorry for the marathon.
I added more of the following to FunctionJavascript classes.
+ /**
+ * {@inheritdoc}
+ */
+ protected $defaultTheme = 'stark';
+
But again, minor complications in a few places to get the test to pass I had to resort to 'classy' over stark
looking at this CR
https://www.drupal.org/node/3083055
It talks about adding 'classy' lead to a short term fix.
This issue is turning into a mega patch.
We have another issue
#3038815: [Meta] Test Refactor
Which has a impact on those changes ... and so I think 'classy' here and deal with any issue down the line.
Lastly I was seeing a few warnings regarding assertTrue()/assertFalse() no longer being good enough
so assetNotNull()/assertNull() are required.
Comment #26
kbrodej CreditAttribution: kbrodej at Agiledrop - Your Trusted Drupal Teammates commentedHi. I was working on deprecated function report and finished it. When I wanted to upload the patch I saw this issue, took a look into changes and were nearly identical to mine for that issue. So I decided to review this patch instead.
Found 2 CS issues for unused use statements.
Ran drupal-check,
which is caused by
However running drupal-check -d reports a lot of errors, most of them are type hints and false positives. Should we take a look into it in this issue or another?
Comment #27
BerdirYes, no coding standards checks here, this is complicated enough as it is :)*
* Apart from regressions that can be avoided.
Still not quite decided on the custom callback support being added here, but I'll soon start requiring 8.8 in my projects, so I guess we can just up it to that then.
Comment #28
martin107 CreditAttribution: martin107 as a volunteer commentedMy time for open source stuff is really limited at the moment... sorry
Comment #29
KlemenDEV CreditAttribution: KlemenDEV as a volunteer and at Pylo commentedThere was a patch for D9 posted at https://www.drupal.org/project/flag/issues/3146500
Comment #30
AmeDSL CreditAttribution: AmeDSL as a volunteer commentedMay we need add core_version_requirement: ^8 || ^9 to
flag/modules/flag_count/flag_count.info.yml
and flag/modules/flag_bookmark/flag_bookmark.info.yml
and flag/modules/flag_follower/flag_follower.info.yml
My only doubt is about module's composer.json file, the Drupal 9 guidelines say "Having a composer.json file is not required for Drupal 9 compatibility. A Drupal 9 compatible info.yml file is required and is enough. If your project does have a composer.json file, having a drupal/core version requirement is also not required for Drupal 9 compatibility. It is better not to provide a drupal/core version requirement in composer.json because Drupal's composer facade will generate the appropriate metadata based on the info.yml file. If for some reason you do need to have a drupal/core version requirement in your composer.json file's require section, then it needs to be Drupal 9 compatible."
I tryed to remove it and now "Upgrade status" module report, says there are no problem at all. But I don't think mine wase a good practice, at all.
Comment #31
Deepak Goyal CreditAttribution: Deepak Goyal at Srijan | A Material+ Company for Drupal India Association commentedComment #32
Deepak Goyal CreditAttribution: Deepak Goyal at Srijan | A Material+ Company for Drupal India Association commentedHi @AmeDSL
Updated patch as you suggested please review.
Comment #33
meet_bhanvadia CreditAttribution: meet_bhanvadia at TATA Consultancy Services commentedHi All,
When I tried to install the module version 8.x-4.x-dev in drupal 9 with including the patch at #32 through composer require command it got failed. It was failing because in composer.json there is dependency on drupal core of version ~8.7. There was a error of requirement failing to install the module in drupal 9, yet it was installed successfully in drupal 8.9.
So Adding the patch to make module compatible with D9.
Please review.
Comment #34
BerdirJust remove the composer.json, it's not needed.
And it's not possible to make a module Drupal 9 compatible with a patch, this needs to be committed first.
Comment #35
BerdirDrupal 8.7 is no longer supported, so lets just require ^8.8 || ^9 now.
Then we can drop this.
Comment #36
meet_bhanvadia CreditAttribution: meet_bhanvadia at TATA Consultancy Services commented@Berdir -- Changes made as per your suggestion.
Please review and suggest me if any correction required.
Comment #38
Deepak Goyal CreditAttribution: Deepak Goyal at Srijan | A Material+ Company for Drupal India Association commentedHi @meet_bhanvadia
Please add inderdiff its good for review the patch.
Comment #39
meet_bhanvadia CreditAttribution: meet_bhanvadia at TATA Consultancy Services commentedTesting issue fixes.
Adding interdiff between patch 32 &39 and patch 33 & 39.
Please review!!
Comment #40
meet_bhanvadia CreditAttribution: meet_bhanvadia at TATA Consultancy Services commentedComment #41
meet_bhanvadia CreditAttribution: meet_bhanvadia at TATA Consultancy Services commentedSorry for the inconvenience!! Interdiff added.
Comment #42
BerdirIt's a bit strange to make this inconsistent. lets require ^8.8 everywhere.
The tests are failing like this:
1) Drupal\Tests\flag_bookmark\FunctionalJavascript\FlagBookmarkUITest::testUi
PHPUnit\Framework\Exception: Fatal error: Interface 'Drupal\flag\TrustedCallbackInterface' not found in /var/www/html/modules/contrib/flag/src/FlagLinkBuilder.php on line 10
So we need to add the proper use statement now.
Comment #43
meet_bhanvadia CreditAttribution: meet_bhanvadia at TATA Consultancy Services commented@Berdir - Made all consistent with 8.8 and tried to fix the test issue.
Comment #44
meet_bhanvadia CreditAttribution: meet_bhanvadia at TATA Consultancy Services commentedComment #47
BerdirGreat. Committed this to make it easier to test.
I did add a D9 test, results here: https://www.drupal.org/pift-ci-job/1721258
As you can see, all tests are still failing, because there are still test modules that are not D9 compatible, so we have to fix that too. But you can now upload patches and run tests against D9.
Comment #48
meet_bhanvadia CreditAttribution: meet_bhanvadia at TATA Consultancy Services commented@Berdir - Fix the test issues for D9.
Comment #49
meet_bhanvadia CreditAttribution: meet_bhanvadia at TATA Consultancy Services commentedComment #50
Akash_Daimari CreditAttribution: Akash_Daimari commentedAfter applying patch #43 and #48, I am using it in core 9.0.0. uptill now there is no issue/problem.
If any issue or problem down the line will inform.
Thanks. @meet_bhanvadia and @Berdir
Comment #51
smrutha CreditAttribution: smrutha at TATA Consultancy Services for Pfizer, Inc. commentedPatch #43 & #48 works for me on Drupal 9.0.0.
Comment #52
Deepak Goyal CreditAttribution: Deepak Goyal at Srijan | A Material+ Company for Drupal India Association commentedComment #53
TR CreditAttribution: TR commentedIs that the only reason this issue is still open?
If so, the patch in #48 is correct, and I just retested it and as you can see the tests all pass in D9 and D8 now ...
RTBC +1
Comment #54
alexpottYou can remove the core key - test modules don't need a version requirement.
Comment #55
BerdirTrue but only with 8.8.2 or so, I'd rather clean this up at a later time. We've had some cases where other contrib modules that still want to be 8.7 compatible and had an integration test with a module that used this feature resulted in having all their tests explode on that as Drupal 8.7 is very unhappy if you have a module in the file system without a core key, even if you don't enable it. We can just remove it when we make it D10 compatible.
Comment #56
BerdirOh wait, confused. that was with neither core nor core_version_requirement. The core key is being removed here in those test modules?
Comment #58
BerdirCommitted.