- Issue created by @spokje
- ๐ณ๐ฑNetherlands spokje
Unsure if this is a bug or a task. Bug because now
AssetResolverTest::testGetJsAssets
is passing without enough return-values in it's Mock, so the test is untrustworthy. Task because that's what we usually do for breaking changes in a dependency update.
Went with task for now.
- Merge request !9242"Bump phpunit/phpunit to 10.5.30 to show test failure" โ (Closed) created by spokje
- Status changed to Needs work
4 months ago 5:09pm 18 August 2024 - ๐ณ๐ฑNetherlands spokje
By the power of , blunt trail-and-error it seems that
$this->libraryDiscovery->expects($this->any())->method('getLibraryByName')->willReturnOnConsecutiveCalls()
inDrupal\Tests\Core\Asset\AssetResolverTest::testGetJsAssets
needs to return twelve instead of the current six values.I'll leave it to bigger brains what those values should be.
- First commit to issue fork.
- Status changed to Needs review
4 months ago 1:37am 20 August 2024 - Status changed to Postponed
4 months ago 5:22am 20 August 2024 - ๐ณ๐ฑNetherlands spokje
Thanks @catch.
The test-failure I've opened this issue for is now indeed gone, however....
It's replaced with three failures that will be solved when [3468502] lands.So I think the right thing to do now is postponing this issue on that one.
- Status changed to Needs work
4 months ago 9:46am 20 August 2024 - ๐ฎ๐นItaly mondrake ๐ฎ๐น
Canโt the AssetResolverTest fix be done now, independently from the dependency bump? That sounds like a bug that needs fixing anyway
- ๐ณ๐ฑNetherlands spokje
Absolutely, makes sense to me.
However I would like to bump the version later on (not necessarily in this issue), because, at least to me, this issue shows the new version adds test coverage of our tests that is/was at least needed in one case.
I think we want this extra test coverage for our tests, so we need a bump. - ๐ฎ๐นItaly mondrake ๐ฎ๐น
Sure. In any case IMHO itโs good practice to keep these tools updated. We will need this for working on PHPUnit bump to 11 anyway.
- Status changed to Needs review
4 months ago 11:43pm 20 August 2024 - ๐ฌ๐งUnited Kingdom catch
Rebased so the MR only includes the fix to the tests and also re-titling for the specific bug fix here.
- Status changed to RTBC
4 months ago 5:10am 21 August 2024 - ๐ณ๐ฑNetherlands spokje
Thanks @catch, code changes without the version bump, so RTBC.
Tagging for followup about version bumping of PHPUnit.
-
longwave โ
committed fd1c79fa on 10.3.x
Issue #3468781 by Spokje, catch, mondrake: AssetResolverTest should use...
-
longwave โ
committed fd1c79fa on 10.3.x
-
longwave โ
committed 2f5393f8 on 10.4.x
Issue #3468781 by Spokje, catch, mondrake: AssetResolverTest should use...
-
longwave โ
committed 2f5393f8 on 10.4.x
-
longwave โ
committed 8d9b6739 on 11.0.x
Issue #3468781 by Spokje, catch, mondrake: AssetResolverTest should use...
-
longwave โ
committed 8d9b6739 on 11.0.x
-
longwave โ
committed 239e6f63 on 11.x
Issue #3468781 by Spokje, catch, mondrake: AssetResolverTest should use...
-
longwave โ
committed 239e6f63 on 11.x
- Status changed to Fixed
4 months ago 9:28pm 22 August 2024 - ๐ฌ๐งUnited Kingdom longwave UK
Committed and pushed 239e6f638d to 11.x and 8d9b67396d to 11.0.x and 2f5393f842 to 10.4.x and fd1c79fa51 to 10.3.x. Thanks!
Looks like PHPUnit will be bumped in ๐ sebastianbergmann/comparator:5.0.2 Introduces (for Drupal) breaking changes Fixed , removing tag.
Automatically closed - issue fixed for 2 weeks with no activity.