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
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#8 | interdiff.txt | 42.04 KB | dawehner |
#8 | 2684095-8.patch | 71.2 KB | dawehner |
#6 | interdiff.txt | 8.52 KB | dawehner |
#6 | 2684095-6.patch | 50.3 KB | dawehner |
#4 | interdiff.txt | 8.11 KB | dawehner |
Comments
Comment #2
dawehnerThis contains #2605956: Port #2605684 to the new KernelTest at the moment.
While working on this issue, #2684123: \Drupal\Core\Routing\RouteProvider::preLoadRoutes doens't handle the exception case correctly popped up.
Comment #4
dawehnerSome less failures, I guess
Comment #6
dawehnerThere we go.
Comment #7
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedThese two are missing a rename and a namespace change.
This comment needs to be re-wrapped to 80 cols.
\Drupal\simpletest\KernelTestBase::prepareConfigDirectories()
was doing a bunch of things, including a sanity check that the config directory exists and is writable.We don't need that anymore with the phpunit-based test class?
Another one :)
Shouldn't this be called FieldKernelTestBase?
Missing empty line.
Same here.
$empty_items can also be NULL, why are we dropping that assertion?
Missing file move and namespace update.
Any reason for this change?
Comment #8
dawehnerThanks a lot for this super quick review @amateescu!
To be clear, kernel tests afaik still run when they are in the old directory, as they are discovered by our custom test scanning, but you are absolute right, let's move them all.
Well, we ensure that the file directory exists, see
Good point!
Is there any chance to configure that in PHPSTorm automatically?
Well, its always an empty array, when you execute it. PHPUnit is a bit more strict on
assertEquals by default
Well, phpstorm doesn't allow one to provide logging like that by default ...
Comment #9
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedI think you mean phpunit, not phpstorm :) And that's a shame really, maybe we should try to add some debugging helpers in our base test classes or, why not, directly upstream. But certainly not in this issue.
The patch looks good to me now, let's hope the testbot agrees.
Comment #10
dawehnerAwesome!
Well, I'm not sure about the point. You can just use your debugger and call it a day. For
BrowserTestBase
But sure, let's discuss that in a follow up.
Comment #11
alexpottCommitted c2f6eb6 and pushed to 8.1.x. Thanks!