- Issue created by @claudiu.cristea
- Merge request !6872Cannot detect if entity is new when the ID is set on creation β (Open) created by claudiu.cristea
- Status changed to Needs review
10 months ago 5:32pm 3 March 2024 - Status changed to RTBC
10 months ago 9:44pm 10 March 2024 - πΊπΈUnited States smustgrave
Change seems simple enough. And didn't break anything that I can tell.
Test coverage is perfectly there and shows the issue.
-'The Name (new)' +'The Name' /builds/issue/drupal-3425226/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121 /builds/issue/drupal-3425226/vendor/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php:79 /builds/issue/drupal-3425226/core/tests/Drupal/KernelTests/Core/Entity/ContentEntityStorageBaseTest.php:79 /builds/issue/drupal-3425226/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 FAILURES! Tests: 5, Assertions: 25, Failures: 1.
- Status changed to Needs work
9 months ago 1:44pm 30 March 2024 - π¬π§United Kingdom alexpott πͺπΊπ
I've add a comment to the MR - I think we should be a little bit more defensive in the code here.
I also think we should have change record for this.