- Issue created by @wim leers
- @wim-leers opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 2:52pm 21 March 2023 - πΊπΈUnited States phenaproxima Massachusetts
I like this. Once tests pass I see no real reason not to RTBC it. IMHO it might also make sense for the base class to always assert that property paths are passed as the keys, just so it's not possible to write a test that doesn't include the property paths.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Glad you like it!
IMHO it might also make sense for the base class to always assert that property paths are passed as the keys, just so it's not possible to write a test that doesn't include the property paths.
True, but the
assertSame()
will make it crystal clear anyway, so I don't see the benefit of making test logic more complicated if it result in almost identical DX :) - Status changed to RTBC
over 1 year ago 6:55pm 21 March 2023 - πΊπΈUnited States smustgrave
Marking it but only question is what if contrib modules are using ConfigEntityValidationTestBase. Will they now fail?
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
It has only existed in
10.1.x
so hasn't shipped in any release at all yet β stable or otherwise! See β¨ Add validation constraints to config_entity.dependencies Fixed :) - last update
over 1 year ago 29,283 pass - last update
over 1 year ago 29,300 pass - last update
over 1 year ago 29,302 pass - last update
over 1 year ago 29,300 pass - last update
over 1 year ago 29,361 pass - last update
over 1 year ago 29,366 pass - Status changed to Needs work
over 1 year ago 4:07pm 30 April 2023 - π¬π§United Kingdom longwave UK
I agree with @quietone, we should document what the keys and values mean in the array.
- last update
over 1 year ago 29,388 pass - Status changed to Needs review
over 1 year ago 2:18pm 12 May 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Good call! π Done.
I took advantage of π Update coder to 8.3.18 Fixed having landed a few days ago. That got Drupal core on https://www.drupal.org/project/coder/releases/8.3.18 β , which includes β¨ Support advanced PHPStan data types (general, arrays) Fixed .
That means it's now far easier to clearly convey that key-value pairs are expected, and what the type should be of the keys vs the values.
- Status changed to RTBC
over 1 year ago 2:37pm 12 May 2023 - π§πͺBelgium borisson_ Mechelen, π§πͺ
This documentation looks great!
- last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,388 pass - last update
over 1 year ago 29,388 pass - Open on Drupal.org βEnvironment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 29,396 pass - last update
over 1 year ago 29,399 pass 4:08 0:34 Running- last update
over 1 year ago 29,400 pass - Status changed to Needs work
over 1 year ago 1:28pm 1 June 2023 - πΊπΈUnited States bnjmnm Ann Arbor, MI
A low stakes back to NW.
Left two comments on the MR (one on an existing thread) that are simple enough that it would be fine to self-rtbc once addressed.
- last update
over 1 year ago 29,398 pass, 2 fail - Status changed to RTBC
over 1 year ago 2:06pm 1 June 2023 - last update
over 1 year ago 29,402 pass - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Great catch, @bnjmnm! π
Tried to create an11.x
branch, and failed:Failed to create branch '3349293-improve-ConfigEntityValidationTestBase-assertValidationErrors-11x': invalid reference name '11.x'
.So continuing to push to the
10.1.x
MR and posting a patch to test against11.x
. - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Also, this literally just came up at #3364109-7: Configuration schema & required values: add test coverage for `nullable: true` validation support β !
See the test output at https://www.drupal.org/pift-ci-job/2681594: β
1) Drupal\KernelTests\Core\Entity\EntityFormDisplayValidationTest::testConfigDependenciesValidation with data set "valid dependency types" (array(array('system.site'), array('node:some-random-uuid'), array('system'), array('stark')), array()) Failed asserting that two arrays are identical. --- Expected +++ Actual @@ @@ -Array &0 () +Array &0 ( + 0 => 'This value should not be null.' +)
not very helpful, right? π³ This fixes that:
1) Drupal\KernelTests\Core\Entity\EntityFormDisplayValidationTest::testConfigDependenciesValidation with data set "valid dependency types" (array(array('system.site'), array('node:some-random-uuid'), array('system'), array('stark')), array()) Failed asserting that two arrays are identical. --- Expected +++ Actual @@ @@ -Array &0 () +Array &0 ( + 'status' => 'This value should not be null.' +)
π
-
bnjmnm β
committed 54fad06e on 11.x
Issue #3349293 by Wim Leers, phenaproxima, smustgrave, longwave, bnjmnm...
-
bnjmnm β
committed 54fad06e on 11.x
-
bnjmnm β
committed c5a3011f on 10.1.x
Issue #3349293 by Wim Leers, phenaproxima, smustgrave, longwave, bnjmnm...
-
bnjmnm β
committed c5a3011f on 10.1.x
- πΊπΈUnited States bnjmnm Ann Arbor, MI
Good stuff here π.
Committed to 11.x and cherry-picked to 10.1.x.
πββοΈ - Status changed to Fixed
over 1 year ago 3:15pm 1 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.