- Issue created by @larowlan
- π¬π§United Kingdom longwave UK
Seems like π Register all of /tests/src/ for class loading Needs review might help prevent this in the future.
- First commit to issue fork.
- Merge request !4983Issue #3393072: Tests in core/modules/phpass/tests/src/Tests do not run β (Closed) created by znerol
- last update
about 1 year ago 30,392 pass, 2 fail - π¨πSwitzerland znerol
When running locally, the following test fails:
/** * Tests invalid constructor arguments. */ public function testInvalidArguments() { $this->expectException(\InvalidArgumentException::class); new PhpassHashedPassword('not a number'); }
I suggest to drop this test entirely. Constructor type hints were added in the very last commit of the original MR. Without the type hints it was necessary to cover custom logic leading to the
InvalidArgumentException
. That was the reason for the test. But now that there is a type hint on the constructor argument, the test isn't necessary anymore in my opinion. - last update
about 1 year ago 30,392 pass, 2 fail - Status changed to Needs review
about 1 year ago 5:53am 11 October 2023 - last update
about 1 year ago 30,405 pass - π¨πSwitzerland znerol
Apologies, I messed that up completely in the original MR.
- Status changed to RTBC
about 1 year ago 1:31pm 11 October 2023 - πΊπΈUnited States smustgrave
Verified this ran at https://drupal-gitlab-job-artifacts.s3.us-west-2.amazonaws.com/85/5c/855...
- Status changed to Needs review
about 1 year ago 5:11am 13 October 2023 - π³πΏNew Zealand quietone
I'm triaging RTBC issues β . I read the IS and the comments. I noticed that this is also removing a test, which, according to the title is out of scope.
The link in #8 and the IS result in an 'access denied'. That is really unfortunate. Instead of the links we will have to copy/paste output as needed.
@smustgrave, did you review the removed test? Do you agree that it can be removed?
Thinking more about scope, this is actually making two corrections to the original commit. In this case, cleaning up tests. I am generally not a fan of expanding scope but I in this case it makes sense. But then this should have a title change. Maybe this, "Ensure Unit tests in phpass run and remove unneeded LegacyPasswordHashingTest::testInvalidArguments". A bit long but descriptive.
Setting to NR for the above.
- π¨πSwitzerland znerol
Updated the issue summary, added instructions on how to detect the missing tests and how to verify the fix.
- Status changed to RTBC
about 1 year ago 1:54pm 13 October 2023 - last update
about 1 year ago 30,410 pass - last update
about 1 year ago 30,410 pass - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Committed to 11.x and backported to 10.2.x and 10.1.x
- Status changed to Fixed
about 1 year ago 12:45am 16 October 2023 -
larowlan β
committed 502604fe on 10.1.x
Issue #3393072 by znerol: Ensure Unit tests in phpass run and remove...
-
larowlan β
committed 502604fe on 10.1.x
-
larowlan β
committed e0fe532d on 10.2.x
Issue #3393072 by znerol: Ensure Unit tests in phpass run and remove...
-
larowlan β
committed e0fe532d on 10.2.x
-
larowlan β
committed 9d4f46c0 on 11.x
Issue #3393072 by znerol: Ensure Unit tests in phpass run and remove...
-
larowlan β
committed 9d4f46c0 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.