Skip to content
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

Merged
merged 1 commit into from
Dec 26, 2023
Merged

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Nov 1, 2023

Q A
Branch? 7.1
Bug fix? no
New feature? no
Deprecations? no
Issues --
License MIT

Follows

@OskarStark OskarStark self-assigned this Nov 1, 2023
@carsonbot carsonbot added this to the 6.4 milestone Nov 1, 2023

$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)
Copy link
Contributor Author

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 🤔

Copy link
Member

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

Copy link
Member

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?

Copy link
Contributor Author

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

@OskarStark OskarStark requested a review from stof November 1, 2023 08:34
nicolas-grekas added a commit that referenced this pull request Nov 2, 2023
…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
@OskarStark
Copy link
Contributor Author

How easy would it be for you to revert all the added return types from providers?
They don't provide any benefit IMHO but make reviewing harder + will generate merge needless conflicts.

Done, good to go @nicolas-grekas

@OskarStark OskarStark mentioned this pull request Dec 20, 2023
fabpot added a commit that referenced this pull request Dec 21, 2023
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
@xabbuh
Copy link
Member

xabbuh commented Dec 21, 2023

the failures look related

@OskarStark
Copy link
Contributor Author

the failures look related

fixed

@OskarStark
Copy link
Contributor Author

Rebased ✅

@nicolas-grekas
Copy link
Member

Thank you @OskarStark.

@nicolas-grekas nicolas-grekas merged commit e6acb8c into symfony:7.1 Dec 26, 2023
6 of 9 checks passed
fabpot added a commit that referenced this pull request Dec 29, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants