Closed (fixed)
Project:
Drupal core
Version:
8.1.x-dev
Component:
field system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2016 at 11:07 UTC
Updated:
24 Mar 2016 at 16:04 UTC
Jump to comment: Most recent, Most recent file
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 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 defaultWell, phpstorm doesn't allow one to provide logging like that by default ...
Comment #9
amateescu 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
BrowserTestBaseBut sure, let's discuss that in a follow up.
Comment #11
alexpottCommitted c2f6eb6 and pushed to 8.1.x. Thanks!