Closed (fixed)
Project:
Drupal core
Version:
8.1.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2016 at 14:31 UTC
Updated:
6 Apr 2016 at 23:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
amateescu commentedHere it is.
Comment #3
amateescu commentedNote that we have to duplicate the code instead of extending the current
\Drupal\Tests\field\Kernel\FieldKernelTestBasebecause test classes that extend the old FieldUnitTestBase class will not run with phpunit.Comment #4
berdirLooks good to me.
We did the same in other cases (EntityUnitTestBase, still has implementations in core though, views base classes, ..), not sure if we did it for migrate or not.
Attaching a diff against 8.0.x, to be sure that we're not introducing a bug here. It's the same except the deprecation notice, entity_create() calls and the router table that was removed from installSchema().
Comment #5
berdiroh, missed that.
Comment #6
amateescu commentedOpps! Silly me :)
Comment #7
berdirBetter :)
Comment #8
mile23I'm not sure core needs to move backwards on it. I'll just be the same problem in 6 months.
The main practical problem is that D.O won't let you specify which version of core to use in tests, so you have to wait for it to finish failing, and then restart the test using 8.0.x.
Comment #9
berdirWhen 8.1.0 comes out then 8.0.x is unsupported and does not need to work anymore. So by then, it will be safe for modules to update to use the new base classes and only support 8.1 and 8.2
Yes, the testbot situation is unfortunate but not really relevant. This is about allowing contrib to easily support the two relevant minor versions.
Comment #10
alexpottCommitted 57436e1 and pushed to 8.1.x. Thanks!
The differences to 8.0.x look totally sane...
Comment #12
alexpott