- Issue created by @joegraduate
- Merge request !4Issue #3436884 by joegraduate: Test failure on Drupal core 10.1+ β (Open) created by joegraduate
- last update
about 1 year ago 2 pass, 1 fail - last update
about 1 year ago 8 pass - Status changed to Needs work
about 1 year ago 10:20pm 28 March 2024 - last update
about 1 year ago 8 pass - last update
11 months ago 8 pass - last update
11 months ago 8 pass - Issue was unassigned.
- Status changed to Needs review
11 months ago 8:48pm 16 May 2024 - πΊπΈUnited States joegraduate Arizona, USA
Tests passing now. This also addresses some issues identified by phpstan.
The actual PHPunit test failures were fixed by updating the readMultiple() and getAllCollectionNames() methods on the ConfigSnapshotStorage class.
ConfigSnapshotStorage::readMultiple() was returning keys with empty values and was updated to work more like FileStorage::readMultiple().
ConfigSnapshotStorage::getAllCollectionNames() was using various array manipulation methods in kind of a confusing way and was updated to work more like MemoryStorage::getAllCollectionNames().
- πΊπΈUnited States joegraduate Arizona, USA
PHPstan issues addressed:
------ -------------------------------------------------------------------- Line src/Entity/ConfigSnapshot.php ------ -------------------------------------------------------------------- 167 Method Drupal\config_snapshot\Entity\ConfigSnapshot::save() should return int but return statement is missing. ------ -------------------------------------------------------------------- ------ ------------------------------------------------------- Line tests/src/Unit/ConfigSnapshotConfigEntityUnitTest.php ------ ------------------------------------------------------- 55 Missing call to parent::setUp() method. ------ -------------------------------------------------------
- Merge request !5Issue #3436884: Test failure on Drupal core 10.1+ β (Merged) created by joegraduate
- last update
11 months ago 8 pass - πΊπΈUnited States joegraduate Arizona, USA
Created a second MR (MR !5) that just includes a change to the ConfigSnapshotStorage class which seems to fix the failing test on its own.
- πΊπΈUnited States joegraduate Arizona, USA
joegraduate β changed the visibility of the branch 3436884-test-failure-on to hidden.
- Status changed to RTBC
11 months ago 4:39pm 17 May 2024 Thanks @joegraduate!
It looked like MR !4 might potentially have had an issue with configuration items that were also falsy. This seems resolved in MR !5 with the strict check. It seems reasonable that the PHPStan issues can be addressed separately from the test failure.
I tested out MR !5 and the snapshot storage still seems to work as expected. !5 looks good to me.
-
joegraduate β
committed bd49979e on 2.0.x
Issue #3436884 by joegraduate, tadean: Test failure on Drupal core 10.1+
-
joegraduate β
committed bd49979e on 2.0.x
- Status changed to Fixed
11 months ago 4:55pm 17 May 2024 - πΊπΈUnited States joegraduate Arizona, USA
Thanks @tadean! Merged MR !5.
Automatically closed - issue fixed for 2 weeks with no activity.