In php7
1) Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest::testSort
Failed asserting that two variables reference the same object.
/.../d8/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php:454
Similar to #2531258: Improve \Drupal\Tests\user\Unit\PermissionHandlerTest::testBuildPermissionsSortPerModule and #2533168: Fix BlockRepositoryTest the ConfigEntityBaseUnitTest relies on sort behavior that can differ in php engines.
http://3v4l.org/e6noO
This one passes through shear luck it seems. We're settings a property on the objects but the sort is calling the label method. The mocks don't work correctly for settings the label method. The last sort doesn't use the right sort method. Its pretty broken.
Lazy beta evaluation: Bug, Tests and PHP7 major so ok.
Comment | File | Size | Author |
---|---|---|---|
#1 | fix-2533222-1.patch | 2.02 KB | neclimdul |
Comments
Comment #1
neclimdulComment #2
Berdir+1
Confirmed the test fail, this fixes it.
The public weight thing is a bit weird, seems like what we should be doing these days is an interface + method for that, can imagine that doesn't work anymore in many cases because we made the properties protected? But that's what the implementation is doing now so makes sense to test that.
Comment #5
BerdirFailed with "Fetch test patch: failed to retrieve [fix-2533222-1.patch] from [www.drupal.org]."
Comment #6
alexpottCommitted 22d8e4b and pushed to 8.0.x. Thanks!
Yep we should open an issue about the weight thing and protection.