Closed (fixed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2017 at 22:59 UTC
Updated:
4 Mar 2018 at 16:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerNice catch! Thank you for opening up this issue @Mile23! We are getting somewhere, one day :)
Comment #3
mile23Since #2803621: Break BrowserTestBase & children dependency on Simpletest, deprecate stub BC traits is good for 8.4.x I filed this one for 8.4.x as well. Obviously maintainers may disagree.
This is a first pass to see what I missed.
We can update the change record from #2803621: Break BrowserTestBase & children dependency on Simpletest, deprecate stub BC traits to reflect the changes here, if 8.4.x is our target. Otherwise we'll need to add one for 8.5.x.
Comment #4
mile23Comment #5
mile23After 8.4.0 release, this should be in 8.5.x.
Comment #6
jofitzRe-rolled.
Comment #7
mile23No longer applies.
Comment #8
mile23Re-rolled.
Comment #10
Anonymous (not verified) commentedRevert status after random fail. Great work!
Comment #12
Anonymous (not verified) commented+1 to RTBC.
Comment #13
samvel commentedRun retest for 8.6.x
Comment #14
mile23Once an issue is marked RTBC the last patch will be tested once daily.
Comment #16
samvel commented@mile23 ok, i only want process it after deploy new drupal core version.
And i think it's not good process to set RTBC after deploy 8.6.x without test
Comment #17
Anonymous (not verified) commentedUnrelated fails. See #2906317: Random fail due to problems with database.
Comment #18
mile23Added change record: https://www.drupal.org/node/2943146
Comment #19
alexpottThese should have @see's to the change record to follow our policy. We can't add @trigger_error though because we're still using Simpletest tests.
Also in TestServiceProvider (now not part of Simpletest) we still have code referring to Simpletest and its namespace. I.e:
So we need to do something about \Drupal\simpletest\RouteProvider which has it's own @todo to move out of simpletest linking to #2672762: Move core/modules/simpletest/src/RouteProvider.php to the Drupal\Tests namespace/folder
Comment #20
mile23OK, so we have a related of #2672762: Move core/modules/simpletest/src/RouteProvider.php to the Drupal\Tests namespace/folder Should we postpone on that or make it a follow-up?
There's also a @todo for #2911498: Make TestServiceProvider more readable (cleanup) which is lower priority but still worth doing.
This patch adds @see for the change record.
Even though this patch itself isn't very disruptive and is a test change eligible for 8.5.x, we also have #2672762: Move core/modules/simpletest/src/RouteProvider.php to the Drupal\Tests namespace/folder which is more disruptive and should be 8.6.x. So the extent to which they're related means we should target this issue to 8.6.x. Deprecation messages changed.
The
foreachinTestServiceProvider::addRouteProvider()comes from #2605684-26: Routing silently fails in kernel tests when there were more services being registered.Comment #21
mile23OK, maybe #2672762: Move core/modules/simpletest/src/RouteProvider.php to the Drupal\Tests namespace/folder isn't that disruptive. Here's a patch rolling it in.
As you can see from above, the foreach is unneeded and left over from when there were multiple services being changed: #2605684-26: Routing silently fails in kernel tests
Comment #22
mile23Updated IS and change record to include RouteProvider.
Marking #2672762: Move core/modules/simpletest/src/RouteProvider.php to the Drupal\Tests namespace/folder as a duplicate of this one.
Comment #23
dawehnerI doubt we treat them as real APIs, but sure, let's not overthink this.
Thank you for making this code more readable!
Comment #24
alexpottCommitted 0858e93 and pushed to 8.6.x. Thanks!