-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Tests] Streamline #52402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tests] Streamline #52402
Conversation
|
||
$this->expectException(InvalidDefinitionException::class); | ||
$this->expectExceptionMessage('The state machine "foo" cannot store many places. But the definition has 2 initial places. Only one is supported.'); | ||
|
||
(new StateMachineValidator())->validate($definition, 'foo'); | ||
|
||
// the test ensures that the validation does not fail (i.e. it does not throw any exceptions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are the following lines still needed @lyrixx I don't understand that part 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this makes no sense I agree, let's see what happens when removing the next lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be also the result of a bad merge ? how does this look like on lower branches?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks the same until 4.4, I will provide a PR against 5.4 for this test and revert here
...ymfony/Component/Validator/Tests/Constraints/LessThanValidatorWithNegativeConstraintTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PasswordHasher/Tests/Hasher/PasswordHasherFactoryTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PasswordHasher/Tests/Hasher/PasswordHasherFactoryTest.php
Show resolved
Hide resolved
src/Symfony/Component/PasswordHasher/Tests/Hasher/SodiumPasswordHasherTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/PasswordHasher/Tests/Hasher/NativePasswordHasherTest.php
Outdated
Show resolved
Hide resolved
7add3d7
to
bac4e6c
Compare
…tional arguments in tests (OskarStark) This PR was merged into the 5.4 branch. Discussion ---------- [PasswordHasher] [Tests] Do not invoke methods with additional arguments in tests | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | --- | License | MIT Extracted from #52402 I think its worth to merge this in 5.4 Commits ------- fdaefc4 [PasswordHasher][Tests] Do not invoke methods with additional arguments in tests
src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Validator/Tests/Constraints/LengthValidatorTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Validator/Tests/Constraints/LengthValidatorTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Validator/Tests/Constraints/LengthValidatorTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Validator/Tests/Constraints/LengthValidatorTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Validator/Tests/Constraints/LengthValidatorTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Validator/Tests/Constraints/LocaleValidatorTest.php
Outdated
Show resolved
Hide resolved
27946e7
to
10b0f48
Compare
Done, good to go @nicolas-grekas |
This PR was merged into the 5.4 branch. Discussion ---------- [Workflow] Fix test | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Follows #52402 (comment) | License | MIT Commits ------- 02fa2ec [Workflow] Fix test
10b0f48
to
ee89a98
Compare
the failures look related |
fixed |
e93ad50
to
9d64921
Compare
Rebased ✅ |
9d64921
to
33d71aa
Compare
Thank you @OskarStark. |
…ark) This PR was merged into the 5.4 branch. Discussion ---------- [Tests] Streamline `CompiledUrlGenerator` tests | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Follows #52402 | License | MIT weird, it looks like the expected exception is thrown in $this->generatorDumper->dump() 🤔 So the following code with the CompiledUrlGenerator is not needed, so maybe the test is not needed anymore or the test must be adjusted somehow to test the behavior of CompiledUrlgenerator.... Commits ------- 807d70e [Tests] Streamline CompiledUrlGenerator tests
Follows
expectException
closer to the place of the expectation to avoid false positives #52157