Closed (outdated)
Project:
Drupal core
Version:
11.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2017 at 15:55 UTC
Updated:
18 Apr 2024 at 02:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerHere is a patch.
Comment #3
claudiu.cristeaNice. Only few nits:
I know that the code was moved around but this is "new code" for the trait, so let's fix the docs: lacks
@return.Needs a comment for
@throws.Trailing spaces.
Comment #4
dawehnerThank you @claudiu.cristea for the super quick review!
Here is some adaption.
Comment #6
dawehnerLet's fix this failure.
Comment #7
claudiu.cristeaPerfect!
Comment #8
larowlanNice cleanup! +1 RTBC
Comment #9
dawehnerThanks all of you!
Comment #10
alexpottLet's inline this into installParameters it's super-specialised.
I don't think we should be adding these to WebTestBase via the Trait. Maybe we need a trait that extends the existing trait and adds them - that'd make this functionality easy to share - or just a whole new trait along side this one.
Comment #11
dawehnerWouldn't this break potential BC?
Can you explain why?
Comment #12
alexpottRe #10.1 Well the problem with getDatabaseTypes is I don't think it should be API in the trait and thereby fore BrowserTestBase tests.
#10.2 Because at this point I don't think we should be adding additional API to WebTestBase and also given the number of tests in the wild WTB additions are always kinda risky.
Comment #13
dawehner#10.1
It turns out, this stuff was actually just not needed for WTB at this moment, so we don't have to add it.
#10.2
Sure. setupBaseUrl() is a new method for BTB as well, so we can mark it as private. This is not something you need to adapt.
prepareEnvironment() can make sense to override, but you know, we can trick it around by making it private in the trait but protected in BTB.
Comment #15
dawehnerWell I fear this simply didn't worked at all, so we maybe have to go to underscore methods.
Comment #17
pritishkumar commentedComment #31
quietone commentedResearch show that what is in the patch here was done in #2870009: Update: Convert system functional tests to phpunit in Aug 2017. Therefor, closing as outdated.